[vcpkg] add environment variable VCPKG_OVERLAY_PORTS#12640
Merged
strega-nil merged 6 commits intomicrosoft:masterfrom Aug 5, 2020
Merged
[vcpkg] add environment variable VCPKG_OVERLAY_PORTS#12640strega-nil merged 6 commits intomicrosoft:masterfrom
strega-nil merged 6 commits intomicrosoft:masterfrom
Conversation
Contributor
|
Provide us some usage? |
Contributor
|
@JackBoosY Here is some usage. It seems to work as intended. set VCPKG_OVERLAY_PORTS=C:\Workspace\a;C:\Workspace\b
vcpkg install test
rem Installs: C:\Workspace\a\test
set VCPKG_OVERLAY_PORTS=C:\Workspace\b;C:\Workspace\a
vcpkg install test
rem Installs: C:\Workspace\b\testexport VCPKG_OVERLAY_PORTS=/mnt/c/Workspace/a:/mnt/c/Workspace/b
vcpkg install test
# Installs: /mnt/c/Workspace/a
export VCPKG_OVERLAY_PORTS=/mnt/c/Workspace/b:/mnt/c/Workspace/a
vcpkg install test
# Installs: /mnt/c/Workspace/bEdit: Overriding directories in |
Contributor
|
Adding this might be a good idea: diff --git i/docs/users/config-environment.md w/docs/users/config-environment.md
index ffa988cbc..db9d26ac3 100644
--- i/docs/users/config-environment.md
+++ w/docs/users/config-environment.md
@@ -38,11 +38,19 @@ Example: `D:\2017`
This environment variable can be set to a triplet name which will be used for unqualified triplet references in command lines.
+#### VCPKG_OVERLAY_PORTS
+
+This environment variable allow users to override ports with alternate versions according to the
+[ports overlay](../specifications/ports-overlay.md) specification. Use `;` as a delimitor on Windows
+and `:` on all other systems.
+
+Example: `C:\custom-ports\boost;C:\custom-ports\sqlite3`
+
#### VCPKG_FORCE_SYSTEM_BINARIES
This environment variable, if set, suppresses the downloading of CMake and Ninja and forces the use of the system binaries.
-### VCPKG_KEEP_ENV_VARS
+#### VCPKG_KEEP_ENV_VARS
This environment variable can be set to a list of environment variables, separated by `;`, which will be propagated to
the build environment. |
strega-nil
approved these changes
Aug 3, 2020
Contributor
strega-nil
left a comment
There was a problem hiding this comment.
I really like this feature.
Contributor
Contributor
Author
|
@strega-nil: probably should follow up with another one for VCPKG_OVERLAY_TRIPLETS. But that one is not so important as this one. |
ras0219
approved these changes
Aug 3, 2020
Co-authored-by: ras0219 <533828+ras0219@users.noreply.github.com>
Contributor
|
pbc regression will be fixed in #12732 |
JackBoosY
approved these changes
Aug 5, 2020
This was referenced Aug 6, 2020
sandercox
added a commit
to sandercox/vcpkg
that referenced
this pull request
Aug 18, 2020
hellozee
pushed a commit
to hellozee/vcpkg
that referenced
this pull request
Sep 11, 2020
* [vcpkg] add environment variable VCPKG_OVERLAY_PORTS * add documentation for VCPKG_OVERLAY_PORTS * append env overlay instead of prepending to give explicitly listed overlays priority * fix formating (manually) * manually fixing formating * improve help text Co-authored-by: ras0219 <533828+ras0219@users.noreply.github.com> Co-authored-by: ras0219 <533828+ras0219@users.noreply.github.com>
strega-nil
pushed a commit
to strega-nil/vcpkg
that referenced
this pull request
May 5, 2021
* [vcpkg] add environment variable VCPKG_OVERLAY_PORTS * add documentation for VCPKG_OVERLAY_PORTS * append env overlay instead of prepending to give explicitly listed overlays priority * fix formating (manually) * manually fixing formating * improve help text Co-authored-by: ras0219 <533828+ras0219@users.noreply.github.com> Co-authored-by: ras0219 <533828+ras0219@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.