chocolatey.lib - Questions about apikeys and packing #2161
Replies: 5 comments 6 replies
-
@TheCakeIsNaOH quick question before digging too deep on this... The |
Beta Was this translation helpful? Give feedback.
-
I am playing with pack more, and pack does work for some packages, but not others. It seems to be correlated to having binaries in the package. Any binary over 10-15mb seems to have an issue, but all of the smaller packages work fine. |
Beta Was this translation helpful? Give feedback.
-
Regarding this question...
Can you show the code that you are using to call the push command? Have you configured the Sources property on the Configuration object? The reason that I ask is the following: choco/src/chocolatey/infrastructure.app/commands/ChocolateyPushCommand.cs Lines 101 to 109 in 773b185 It should be looking up the ApiKey for the configured source. |
Beta Was this translation helpful? Give feedback.
-
Regarding this:
That would simply be the output from running |
Beta Was this translation helpful? Give feedback.
-
@gep13 Have you had a chance to dig into this yet? |
Beta Was this translation helpful? Give feedback.
-
I have a couple of questions about using
chocolatey.lib
.Is there a way to use an apikey added to the installed
choco.exe
? I.E. use an apikey added withchoco.exe apikey -s url -k key
? I would like to be able to push without having to specify the apikey each time.Is there a way to get what URLs there are ApiKeys for from the installed
choco.exe
? So I can check if there is an apikey available for the source I want to push to.Is there something special in the config required to pack packages? I get an error (see below). Using
choco.exe pack
works fine.Source code snippet:
Beta Was this translation helpful? Give feedback.
All reactions