-
Notifications
You must be signed in to change notification settings - Fork 7.4k
[vcpkg] Add commands to maintain and verify versions db integrity #14999
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ras0219-msft
merged 61 commits into
microsoft:master
from
vicroms:versioning/version-files
Jan 8, 2021
Merged
Changes from all commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
37756c3
[vcpkg] Add x-ci-verify-versions command
vicroms d297ec7
Code cleanup
vicroms 6d09d42
Remove port version splitting from x-history
vicroms b93c0cc
Fix wrong message on success
vicroms 1dffab4
Parallelize versions file generator
vicroms 144ca4d
Use cpu_count()/2 to avoid crashes
vicroms 9d9ec61
Check db SHA against local SHA
vicroms 4a8677f
Check baseline version with x-ci-verify-versions and make baseline ge…
vicroms a2e1581
Merge branch 'master' of github.com:microsoft/vcpkg into versioning/v…
vicroms 584c32c
Implement x-add-version to update version db files
vicroms 7249aba
Better checks for x-add-info and make x-ci-verify-versions silent on …
vicroms f6a2d32
Use find() instead of [] on maps
vicroms 59687ec
Create version file if does not exist
vicroms 357dc4f
Merge branch 'master' of github.com:microsoft/vcpkg into versioning/v…
vicroms 6d12301
Allow redirection of ports/ and port_versions/
vicroms 69d035b
add test ports
vicroms 8742ee1
WIP end-to-end tests
vicroms 49f67e7
Change pats in e2e tests
vicroms 1761593
Fix e2e args
vicroms f9fede4
e2e once more
vicroms f12a821
Pass ersions feature flag to e2e
vicroms b295089
Exit with code 1 if there are errors
vicroms d2da099
Files to test for failure cases
vicroms 809c959
Update test files
vicroms cc64e95
Add test for x-add-version
vicroms e5532df
fix redirected ports in last test
vicroms 4c36ce2
Add CI check (use dummy data)
vicroms 828f12f
Add feature-flags=versions
vicroms a335022
Merge branch 'master' of github.com:microsoft/vcpkg into versioning/v…
vicroms 0c52cb6
Ignore subdirectories inside ports
vicroms d5fe898
Add --verify-git-trees switch
vicroms fb6313e
Merge branch 'master' of github.com:microsoft/vcpkg into versioning/v…
vicroms 109d01e
Merge branch 'master' of https://github.com/microsoft/vcpkg into vers…
ras0219-msft b50c844
[vcpkg] Fix build breaks
ras0219-msft 4edff47
Merge branch 'versioning/version-files' of github.com:vicroms/vcpkg i…
vicroms 8d93fb2
[x-ci-verify-versions] PR comments
vicroms f3145c3
[x-add-version] PR comments
vicroms 1d7f153
Merge branch 'master' of github.com:microsoft/vcpkg into versioning/v…
vicroms abeaeec
Fix merge conflicts
vicroms 2ad7ad8
Modify tests and pipeline
vicroms a12cffc
Baselines should only have version-string
vicroms 5a358d7
Merge branch 'master' into versioning/version-files
vicroms dbbc75d
Refactor x-add-version
vicroms e8fdaa7
Merge branch 'master' of github.com:microsoft/vcpkg into versioning/v…
vicroms 7a8ff1e
Merge branch 'master' of https://github.com/Microsoft/vcpkg into vers…
ras0219 f47c42d
[vcpkg] Fix help message
ras0219 98ecdce
[vcpkg] Fix minor warnings
ras0219 ace4a1d
`x-add-version --all` doesn't stop on first failure and reduced defau…
vicroms ea6f4d4
Merge branch 'versioning/version-files' of github.com:vicroms/vcpkg i…
vicroms 6f456ad
[vcpkg] Fix default-baseline
ras0219 68cb21e
Merge branch 'versioning/version-files' of https://github.com/vicroms…
ras0219 fef097b
Load file instead of using paths provider
vicroms efd51bc
Format
vicroms fe2a8b7
Remove ci test
vicroms 9995f24
Add fish port for testing
vicroms 51a3b63
Update version files
vicroms 44cc579
Update fish port to cause SHA discrepancy
vicroms fa26c45
Test for discrepancy between local SHA and declared SHA
vicroms 8683a4e
Missing = operator
vicroms 59efda8
Check for error message since x-add-version exits with code 0
vicroms ef1a0cc
Make x-add-version fail with non-zero exit code if not run with --all
vicroms File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| . $PSScriptRoot/../end-to-end-tests-prelude.ps1 | ||
|
|
||
| # Test verify versions | ||
| mkdir $VersionFilesRoot | ||
| Copy-Item -Recurse "scripts/testing/version-files/port_versions_incomplete" $VersionFilesRoot | ||
| $portsRedirectArgsOK = @( | ||
| "--feature-flags=versions", | ||
| "--x-builtin-ports-root=scripts/testing/version-files/ports", | ||
| "--x-builtin-port-versions-dir=scripts/testing/version-files/port_versions" | ||
| ) | ||
| $portsRedirectArgsIncomplete = @( | ||
| "--feature-flags=versions", | ||
| "--x-builtin-ports-root=scripts/testing/version-files/ports_incomplete", | ||
| "--x-builtin-port-versions-dir=$VersionFilesRoot/port_versions_incomplete" | ||
| ) | ||
| $CurrentTest = "x-verify-ci-versions (All files OK)" | ||
| Write-Host $CurrentTest | ||
| ./vcpkg $portsRedirectArgsOK x-ci-verify-versions --verbose | ||
| Throw-IfFailed | ||
|
|
||
| $CurrentTest = "x-verify-ci-versions (Incomplete)" | ||
| ./vcpkg $portsRedirectArgsIncomplete x-ci-verify-versions --verbose | ||
| Throw-IfNotFailed | ||
|
|
||
| $CurrentTest = "x-add-version cat" | ||
| # Do not fail if there's nothing to update | ||
| ./vcpkg $portsRedirectArgsIncomplete x-add-version cat | ||
| Throw-IfFailed | ||
|
|
||
| $CurrentTest = "x-add-version dog" | ||
| # Local version is not in baseline and versions file | ||
| ./vcpkg $portsRedirectArgsIncomplete x-add-version dog | ||
| Throw-IfFailed | ||
|
|
||
| $CurrentTest = "x-add-version duck" | ||
| # Missing versions file | ||
| ./vcpkg $portsRedirectArgsIncomplete x-add-version duck | ||
| Throw-IfFailed | ||
|
|
||
| $CurrentTest = "x-add-version ferret" | ||
| # Missing versions file and missing baseline entry | ||
| ./vcpkg $portsRedirectArgsIncomplete x-add-version ferret | ||
| Throw-IfFailed | ||
|
|
||
| $CurrentTest = "x-add-version fish (must fail)" | ||
| # Discrepancy between local SHA and SHA in fish.json. Requires --overwrite-version. | ||
| $out = ./vcpkg $portsRedirectArgsIncomplete x-add-version fish | ||
| Throw-IfNotFailed | ||
| $CurrentTest = "x-add-version fish --overwrite-version" | ||
| ./vcpkg $portsRedirectArgsIncomplete x-add-version fish --overwrite-version | ||
| Throw-IfFailed | ||
|
|
||
| $CurrentTest = "x-add-version mouse" | ||
| # Missing baseline entry | ||
| ./vcpkg $portsRedirectArgsIncomplete x-add-version mouse | ||
| Throw-IfFailed | ||
| # Validate changes | ||
| ./vcpkg $portsRedirectArgsIncomplete x-ci-verify-versions --verbose | ||
| Throw-IfFailed | ||
|
|
||
| $CurrentTest = "default baseline" | ||
| $out = ./vcpkg $commonArgs "--feature-flags=versions" install --x-manifest-root=scripts/testing/version-files/default-baseline-1 | ||
| Throw-IfNotFailed | ||
| # if ($out -notmatch "Error: while checking out baseline" -or $out -notmatch " does not exist in ") | ||
| # { | ||
| # $out | ||
| # throw "Expected to fail due to missing baseline" | ||
| # } | ||
|
|
||
| git fetch https://github.com/vicroms/test-registries | ||
| $CurrentTest = "default baseline" | ||
| ./vcpkg $commonArgs "--feature-flags=versions" install ` | ||
| "--x-manifest-root=scripts/testing/version-files/default-baseline-2" ` | ||
| "--x-builtin-port-versions-dir=scripts/testing/version-files/default-baseline-2/port_versions" | ||
| Throw-IfFailed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "name": "default-baseline-test", | ||
| "version-string": "0", | ||
| "$x-default-baseline": "fca18ba3572f8aebe3b8158c359db62a7e26134e", | ||
| "dependencies": [ | ||
| "zlib" | ||
| ] | ||
| } |
14 changes: 14 additions & 0 deletions
14
scripts/testing/version-files/default-baseline-2/port_versions/z-/zlib.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| { | ||
| "versions": [ | ||
| { | ||
| "git-tree": "7bb2b2f3783303a4dd41163553fe4cc103dc9262", | ||
| "version-string": "1.2.11", | ||
| "port-version": 9 | ||
| }, | ||
| { | ||
| "git-tree": "4927735fa9baca564ebddf6e6880de344b20d7a8", | ||
| "version-string": "1.2.11", | ||
| "port-version": 8 | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "name": "default-baseline-test", | ||
| "version-string": "0", | ||
| "$x-default-baseline": "cbd5a68012471f820b7cf28d618199b4a4d89c58", | ||
| "dependencies": [ | ||
| "zlib" | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "default": { | ||
| "cat": { | ||
| "version-string": "1.0", | ||
| "port-version": 0 | ||
| }, | ||
| "dog": { | ||
| "version-string": "2001-01-01", | ||
| "port-version": 0 | ||
| }, | ||
| "duck": { | ||
| "version-string": "mallard", | ||
| "port-version": 0 | ||
| }, | ||
| "mouse": { | ||
| "version-string": "1.0.0", | ||
| "port-version": 0 | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "versions": [ | ||
| { | ||
| "git-tree": "5dd257451526d5b9e560f5f35d7029ba40d88587", | ||
| "version": "1.0", | ||
| "port-version": 0 | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "versions": [ | ||
| { | ||
| "git-tree": "e170a2ed0da7ba5d434c4a0a98ffd7a3159e3200", | ||
| "version-date": "2001-01-01", | ||
| "port-version": 0 | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "versions": [ | ||
| { | ||
| "git-tree": "0a52a9d722c75b3bfe47d5f5db6c9eb1a64af156", | ||
| "version-string": "mallard", | ||
| "port-version": 0 | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "versions": [ | ||
| { | ||
| "git-tree": "55ed624191e0a1905bd97af29fdf6a1d7f4e6d7c", | ||
| "version-semver": "1.0.0", | ||
| "port-version": 0 | ||
| } | ||
| ] | ||
| } |
20 changes: 20 additions & 0 deletions
20
scripts/testing/version-files/port_versions_incomplete/baseline.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "default": { | ||
| "cat": { | ||
| "version-string": "1.0", | ||
| "port-version": 0 | ||
| }, | ||
| "dog": { | ||
| "version-string": "2001-01-01", | ||
| "port-version": 0 | ||
| }, | ||
| "duck": { | ||
| "version-string": "mallard", | ||
| "port-version": 0 | ||
| }, | ||
| "fish": { | ||
| "version-string": "1.0.0", | ||
| "port-version": 0 | ||
| } | ||
| } | ||
| } |
9 changes: 9 additions & 0 deletions
9
scripts/testing/version-files/port_versions_incomplete/c-/cat.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "versions": [ | ||
| { | ||
| "git-tree": "5dd257451526d5b9e560f5f35d7029ba40d88587", | ||
| "version": "1.0", | ||
| "port-version": 0 | ||
| } | ||
| ] | ||
| } |
9 changes: 9 additions & 0 deletions
9
scripts/testing/version-files/port_versions_incomplete/d-/dog.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "versions": [ | ||
| { | ||
| "git-tree": "e170a2ed0da7ba5d434c4a0a98ffd7a3159e3200", | ||
| "version-date": "2001-01-01", | ||
| "port-version": 0 | ||
| } | ||
| ] | ||
| } |
9 changes: 9 additions & 0 deletions
9
scripts/testing/version-files/port_versions_incomplete/f-/fish.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "versions": [ | ||
| { | ||
| "git-tree": "cf3be634f203c1b4152b65ec7700d5695a1fca5c", | ||
| "version-string": "1.0.0", | ||
| "port-version": 0 | ||
| } | ||
| ] | ||
| } |
9 changes: 9 additions & 0 deletions
9
scripts/testing/version-files/port_versions_incomplete/m-/mouse.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "versions": [ | ||
| { | ||
| "git-tree": "55ed624191e0a1905bd97af29fdf6a1d7f4e6d7c", | ||
| "version-semver": "1.0.0", | ||
| "port-version": 0 | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| set(VCPKG_POLICY_EMPTY_PACKAGE enabled) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "name": "cat", | ||
| "version": "1.0" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| set(VCPKG_POLICY_EMPTY_PACKAGE enabled) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "name": "dog", | ||
| "version-date": "2001-01-01" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| set(VCPKG_POLICY_EMPTY_PACKAGE enabled) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "name": "duck", | ||
| "version-string": "mallard" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| set(VCPKG_POLICY_EMPTY_PACKAGE enabled) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "name": "mouse", | ||
| "version-semver": "1.0.0" | ||
| } |
1 change: 1 addition & 0 deletions
1
scripts/testing/version-files/ports_incomplete/cat/portfile.cmake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| set(VCPKG_POLICY_EMPTY_PACKAGE enabled) |
4 changes: 4 additions & 0 deletions
4
scripts/testing/version-files/ports_incomplete/cat/vcpkg.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "name": "cat", | ||
| "version": "1.0" | ||
| } |
1 change: 1 addition & 0 deletions
1
scripts/testing/version-files/ports_incomplete/dog/portfile.cmake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| set(VCPKG_POLICY_EMPTY_PACKAGE enabled) |
5 changes: 5 additions & 0 deletions
5
scripts/testing/version-files/ports_incomplete/dog/vcpkg.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "name": "dog", | ||
| "version-date": "2001-01-01", | ||
| "port-version": 1 | ||
| } |
1 change: 1 addition & 0 deletions
1
scripts/testing/version-files/ports_incomplete/duck/portfile.cmake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| set(VCPKG_POLICY_EMPTY_PACKAGE enabled) |
4 changes: 4 additions & 0 deletions
4
scripts/testing/version-files/ports_incomplete/duck/vcpkg.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "name": "duck", | ||
| "version-string": "mallard" | ||
| } |
1 change: 1 addition & 0 deletions
1
scripts/testing/version-files/ports_incomplete/ferret/portfile.cmake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| set(VCPKG_POLICY_EMPTY_PACKAGE enabled) |
4 changes: 4 additions & 0 deletions
4
scripts/testing/version-files/ports_incomplete/ferret/vcpkg.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "name": "ferret", | ||
| "version": "1" | ||
| } |
1 change: 1 addition & 0 deletions
1
scripts/testing/version-files/ports_incomplete/fish/portfile.cmake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| set(VCPKG_POLICY_EMPTY_PACKAGE enabled) |
5 changes: 5 additions & 0 deletions
5
scripts/testing/version-files/ports_incomplete/fish/vcpkg.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "name": "fish", | ||
| "version-string": "1.0.0", | ||
| "description": "This description causes an intentional discrepancy between the local SHA and the SHA in fish.json for version 1.0.0" | ||
| } |
1 change: 1 addition & 0 deletions
1
scripts/testing/version-files/ports_incomplete/mouse/portfile.cmake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| set(VCPKG_POLICY_EMPTY_PACKAGE enabled) |
4 changes: 4 additions & 0 deletions
4
scripts/testing/version-files/ports_incomplete/mouse/vcpkg.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "name": "mouse", | ||
| "version-semver": "1.0.0" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| #pragma once | ||
|
|
||
| #include <vcpkg/commands.interface.h> | ||
|
|
||
| namespace vcpkg::Commands::AddVersion | ||
| { | ||
| void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths); | ||
|
|
||
| struct AddVersionCommand : PathsCommand | ||
| { | ||
| void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths) const override; | ||
| }; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| #pragma once | ||
|
|
||
| #include <vcpkg/commands.interface.h> | ||
|
|
||
| namespace vcpkg::Commands::CIVerifyVersions | ||
| { | ||
| void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths); | ||
|
|
||
| struct CIVerifyVersionsCommand : PathsCommand | ||
| { | ||
| void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths) const override; | ||
| }; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.