-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make --only-downloads not affect ABI (#1363)
While reviewing changes to #1339 , I observed that it was strange that the abi hash depends on whether download_only is selected. After discussion with @ras0219-msft , he agreed that the ABI hash shouldn't be affected by this setting. However, given that in download mode, we intentionally build things which do not have all their dependencies present, it would not be safe to attempt to cache or otherwise install anything in that condition. This change removes download_only from the ABI calculation, and changes installation to only attempt to install built bits whose dependencies are all satisfied.
- Loading branch information
1 parent
324c38b
commit fa20b09
Showing
10 changed files
with
123 additions
and
61 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
azure-pipelines/e2e-ports/vcpkg-e2e-test-fails-in-download-only-transitive/portfile.cmake
This file contains 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 @@ | ||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled) | ||
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/share/${PORT}") | ||
file(WRITE "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" "copyright message") | ||
file(WRITE "${CURRENT_PACKAGES_DIR}/share/${PORT}/installed.txt" "${PORT} installed") |
5 changes: 5 additions & 0 deletions
5
azure-pipelines/e2e-ports/vcpkg-e2e-test-fails-in-download-only-transitive/vcpkg.json
This file contains 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": "vcpkg-e2e-test-fails-in-download-only-transitive", | ||
"version": "1.0.0", | ||
"dependencies": [ "vcpkg-e2e-test-fails-in-download-only" ] | ||
} |
8 changes: 8 additions & 0 deletions
8
azure-pipelines/e2e-ports/vcpkg-e2e-test-fails-in-download-only/portfile.cmake
This file contains 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 @@ | ||
if(DEFINED VCPKG_DOWNLOAD_MODE) | ||
message(FATAL_ERROR "This port does not compile in download mode") | ||
endif() | ||
|
||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled) | ||
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/share/${PORT}") | ||
file(WRITE "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" "copyright message") | ||
file(WRITE "${CURRENT_PACKAGES_DIR}/share/${PORT}/installed.txt" "${PORT} installed") |
5 changes: 5 additions & 0 deletions
5
azure-pipelines/e2e-ports/vcpkg-e2e-test-fails-in-download-only/vcpkg.json
This file contains 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": "vcpkg-e2e-test-fails-in-download-only", | ||
"version": "1.0.0", | ||
"dependencies": ["vcpkg-internal-e2e-test-port"] | ||
} |
3 changes: 3 additions & 0 deletions
3
azure-pipelines/e2e-ports/vcpkg-internal-e2e-test-port/portfile.cmake
This file contains 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 |
---|---|---|
@@ -1 +1,4 @@ | ||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled) | ||
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/share/${PORT}") | ||
file(WRITE "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" "copyright message") | ||
file(WRITE "${CURRENT_PACKAGES_DIR}/share/${PORT}/installed.txt" "${PORT} installed") |
This file contains 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 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 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 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 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