Skip to content
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

[vcpkg] Introduce experimental workaround X_VCPKG_NUGET_ID_PREFIX #40

Merged

Conversation

ras0219-msft
Copy link
Contributor

This PR introduces an experimental workaround for the problem described in microsoft/vcpkg#16579 by enabling a prefix to be added to all binary cached NuGet package ids. This enables multiple projects using the same NuGet feed to "see" a completely independent universe of cached packages and prevents all collisions.

To activate the workaround, simply set the environment variable X_VCPKG_NUGET_ID_PREFIX to a non-empty string. Package IDs will then be constructed as <prefix>_<port>_<triplet> instead of the default <port>_<triplet>.

@PazerOP I'd greatly appreciate it if you could try out this PR and confirm that it solves your issue. You will need to build the tool from source, which can be done by cloning this repo and using standard cmake.

@ras0219-msft ras0219-msft merged commit e70d42b into microsoft:main Apr 1, 2021
@ras0219-msft ras0219-msft deleted the dev/roschuma/nuget-id-prefix branch April 1, 2021 18:06
strega-nil added a commit that referenced this pull request Apr 15, 2021
The following PRs are included:

* hopefully fix crash in constraints (#60)
* [vcpkg] allow --version to check the version (#50)
* Remove baseline warning (#27)
* [git] always pass autocrlf=false (#58)
* ignore QtCreator CMake project files (#54)
* ignore .DS_store files (#53)
* [vcpkg] x-add-version now also checks if the manifest file is properly formatted (#43)
* hopefully fix ci issue #16773 (#34)
* Add docs to set VCPKG_ROOT to run tests (#45)
* [vcpkg] x-add-version improve speed by calling get_builtin_baseline only once (#44)
* add clang-format version to format-cxxcode (#41)
* [vcpkg] Introduce experimental workaround X_VCPKG_NUGET_ID_PREFIX (#40)
* [supports] Add `native` identifier expression and x-check-support command (#29)
* [metrics] Split reporting of installs into name:triplet (#39)
* [vcpkg] Improve error when accessing missing feature (#38)
* [vcpkg] Allow shallow git registries (#37)
* Disable git autocrlf when archiving tree (#36)
* Use only named packages from extra registries (#35)
* [registries] add metrics (#30)
* Add vcpkg policy cmake helper port support (#17)
* [osx] add support for rosetta (#23)
* don't build tls12-download unless it's needed (#33)
* Add new telemetry points for versioning (#21)
* add cmake_minimum_required to vcpkg_tags (#25)
* [x-add-versions] Perform atomic replacement of versioning files (#28)
* [tools] support gsutil (#19)
* add CUDA 11.1 and 11.2 to KEEP_ENV_VARS defaults (#26)
* Add finite timeout on CURL metrics endpoint. (#22)
* fix UB in make_error_code(utf8_errc) (#18)
@ras0219-msft ras0219-msft restored the dev/roschuma/nuget-id-prefix branch April 29, 2021 18:19
@ras0219-msft ras0219-msft deleted the dev/roschuma/nuget-id-prefix branch April 29, 2021 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants