Add integration test for #275

This commit is contained in:
tgunnoe 2022-08-30 10:43:10 -04:00
parent 10e4617f54
commit 36b640d6de
3 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,26 @@
# test: yarn-lock evaluation with @git+ in versions
#
# Detecting regressions of #275.
#
# Evaluation of a package.json and a yarn.lock with special cases for
# versions would cause mismatches between the two:
# ''error: attribute '*' missing'
#
# 1. package.json has a dependency with a version starting with "@git+"
# 2. yarn resolves it in its yarn.lock file to the proper version and reference
# 3. the two are either not parsed correctly or mismatched on evaluation
#
{
inputs = {
dream2nix.url = "github:nix-community/dream2nix";
};
outputs = {self, dream2nix }:
dream2nix.lib.makeFlakeOutputs {
systems = ["x86_64-linux"];
config.projectRoot = ./.;
packageOverrides = {};
source = ./.;
};
}

View File

@ -0,0 +1,7 @@
{
"name": "test-git-versions",
"version": "1.0.0",
"dependencies": {
"browser-image-resizer": "git+https://github.com/misskey-dev/browser-image-resizer#v2.2.1-misskey.2"
}
}

View File

@ -0,0 +1,7 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
"browser-image-resizer@git+https://github.com/misskey-dev/browser-image-resizer#v2.2.1-misskey.2":
version "2.2.1-misskey.2"
resolved "git+https://github.com/misskey-dev/browser-image-resizer#a58834f5fe2af9f9f31ff115121aef3de6f9d416"