Comments (3)
@JonLiu1993 since you applied a repro label I tried to make a reproduction case and tried using public GitHub to do a NuGet feed. The public GitHub seems to allow a package that isn't associated with a repository while the GitHub Enterprise offering does not.
Internally we have a support ticket on this with GitHub so we can prolly close this.
from vcpkg.
The reason I added this label is that I successfully exported the package locally using the command ./vcpkg export zlib:x64-windows --nuget, and I created a C++ console project and used it normally, but I don’t have the environment to upload it to GitHub Packages to reproduce your issue.
PS F:\Feature-test\vcpkg> ./vcpkg export zlib:x64-windows --nuget
The following packages are already built and will be exported:
* vcpkg-cmake:x64-windows
zlib:x64-windows
Additional packages (*) need to be exported to complete this operation.
Exporting vcpkg-cmake:x64-windows...
Exporting zlib:x64-windows...
Creating NuGet package...
Created nupkg: F:\Feature-test\vcpkg\vcpkg-export-20240605-023504.1.0.0.nupkg
PM> Install-Package "vcpkg-export-20240605-023504" -Source "F:\Feature-test\vcpkg"
Attempting to gather dependency information for package 'vcpkg-export-20240605-023504.1.0.0' with respect to project 'nuget-project', targeting 'native,Version=v0.0'
Gathering dependency information took 6 ms
Attempting to resolve dependencies for package 'vcpkg-export-20240605-023504.1.0.0' with DependencyBehavior 'Lowest'
Resolving dependency information took 0 ms
Resolving actions to install package 'vcpkg-export-20240605-023504.1.0.0'
Resolved actions to install package 'vcpkg-export-20240605-023504.1.0.0'
Retrieving package 'vcpkg-export-20240605-023504 1.0.0' from 'F:\Feature-test\vcpkg'.
Adding package 'vcpkg-export-20240605-023504.1.0.0' to folder 'C:\Users\test\source\repos\nuget-project\packages'
Added package 'vcpkg-export-20240605-023504.1.0.0' to folder 'C:\Users\test\source\repos\nuget-project\packages'
Added package 'vcpkg-export-20240605-023504.1.0.0' to 'packages.config'
Successfully installed 'vcpkg-export-20240605-023504 1.0.0' to nuget-project
Executing nuget actions took 854 ms
Time Elapsed: 00:00:00.9872465
from vcpkg.
The reason I added this label is that I successfully exported the package locally using the command ./vcpkg export zlib:x64-windows --nuget, and I created a C++ console project and used it normally, but I don’t have the environment to upload it to GitHub Packages to reproduce your issue.
GitHub Packages is available to all. If you go through the setup described in the docs you should be off and running in case you have to debug any issues in the future.
From speaking to the GitHub Support Team it appears that github.com is using v2 of GitHub Packages while the GitHub Enterprise offering is using v1. In v1 a package needs to be associated with a repository while in v2 that association isn't required. That's why I'm seeing an error when pushing to a GitHub Enterprise instance but not to github.com.
from vcpkg.
Related Issues (20)
- [upb] Build failure on x64-windows HOT 2
- [<port name>] build failure HOT 4
- [json-c] vcpkg install json-c build failure HOT 13
- [abseil] Build error on x64-windows (insufficient resource) ? HOT 6
- [boost] error: File does not have the expected hash: HOT 4
- [skia] Unresolved external symbol SkSVGDOM::Builder::make HOT 4
- [libmysql] build failure in libedit because warnings as errors HOT 1
- [libiconv] build error HOT 1
- [bzip2] Build failure on arm64-osx HOT 1
- [libiconv] build failure HOT 2
- [ffmpeg] Build error on x64-osx HOT 1
- [libcap] Build error on x64-linux HOT 2
- [New Port Request] rapidhash
- Baseline regression: CI file conflicts from mesa's new libegl on windows HOT 1
- [suitesparse] Build error on x64-windows HOT 1
- [suitesparse] Build error on x64-windows HOT 7
- [libiconv] build failure HOT 4
- [libdeflate] Build error on x64-linux HOT 1
- [ffmpeg] linux/arm64 build failure
- [libdeflate] Build error on x64-linux HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vcpkg.