-
Notifications
You must be signed in to change notification settings - Fork 904
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
"The use of .nupkg or .nuspec in for package name or source is known to cause issues." reports empty nuspec
<id />
when a .nupkg
file was specified
#2850
Comments
You need to run
|
Based on feedback from this issue: chocolatey/choco#2850
Based on feedback from this issue: chocolatey/choco#2850
@jpluimers I just wanted to add from additional information here, on top of what @TheCakeIsNaOH has already stated...
|
(doc) Use full name of option Based on feedback from this issue: chocolatey/choco#2850
Thanks for this @TheCakeIsNaOH:
When researching the confusing message, I got these differences. Seeing that message in the first place gives me the feeling Chocolatey is trying to help relatively novice users. But for them, it is confusing: apparently at that moment they are already supposed to know what an empty I think Chocolatey can do better here given that it knows how a Hence my issue in the first place and my suggestion above to enrich the
Thinking about it, it would be a great help for all (not just novice) users to rephrasing the
into something like
Thanks for the commits and comments @gep13: much appreciated.
No, but I did find https://docs.chocolatey.org/en-us/create/create-packages in the Google Search results (archived here) right above https://community.chocolatey.org/courses/creating-chocolatey-packages/building-testing-and-pushing I think with "note" you mean this one:
I didn't notice it as it was too low on the page after irrelevant contexts (like package dependencies). In addition it was too large to understand in one go. I need to think about how that can be done better. Back the the search results: Basically https://community.chocolatey.org/courses/creating-chocolatey-packages/building-testing-and-pushing is the https://docs.chocolatey.org/en-us/create/create-packages#testing-your-package subset of the huge https://docs.chocolatey.org/en-us/create/create-packages page so I agree with Google that https://community.chocolatey.org/courses/creating-chocolatey-packages/building-testing-and-pushing is a better fit for my purpose than https://docs.chocolatey.org/en-us/create/create-packages#testing-your-package Note I was not creating a fresh package, but preparing a pull request for an existing published package. Since modifications are way more frequent than creations and require a smaller skill-set, it is important for bout output and documentation to take that into account: that was the basic reason for submitting this issue. I am drafting a blog post that has one more point and will file a separate issue for that. |
I came across this ordeal today and wanted to ask something: The warning message, which dates back to commit ff0340c, is grammatically incorrect. Exactly what does (emphasis mine) "The use of .nupkg or .nuspec in for package name or source ..." mean? Is it trying to say something like the below? (Sorry, GitHub seems to be eating my backticks, and escaping them does not seem to work)
Also FWIW, I'm struggling with what this ticket is about, but on only 1 of my 3 Chocolatey packages, which is quite strange. |
I figured out the problem: it has to do with the
...will work with |
@koitsu that's likely because the first version is a prerelease, so you need to either specify the version, or include |
@corbob Thanks a lot! The message has since scrolled off my terminal, but I do remember it saying something about |
What You Are Seeing?
Being a novice chocolatey contributor, I follow documentation as I wanted to create a pull request for Any plans to upgrade SetACL to the new version? · Issue #309 · bcurran3/ChocolateyPackages.
So I expanded the cryptic
-dv -s .
switches from Chocolatey Software | Building, Testing, and Pushing Your Package into an understandable form in order to build and test before submitting any pull request for the above issue.The first line after running
choco install setacl.3.1.2.0.nupkg --debug --verbose --source=.
surprised me as it did not help me into formulating the correct command (though I was happy the install did succeed).Extract from the full log gist:
What is Expected?
Instead of
<id />
I expected a.nuspec
name,.nuspec
filename or package name (as all three are in thesetacl.3.1.2.0.nupkg
which appears to be a ZIP compressed Office Open XML file formats having both the source content and some extra meta-data).How Did You Get This To Happen? (Steps to Reproduce)
I forked https://github.com/bcurran3/ChocolateyPackages into https://github.com/jpluimers/bcurran3.ChocolateyPackages
From
C:\Users\jeroenp\Documents\Versioned\github.com\jpluimers
I did agit clone https://github.com/jpluimers/bcurran3.ChocolateyPackages
In the directory tree
C:\Users\jeroenp\Documents\Versioned\github.com\jpluimers\bcurran3.ChocolateyPackages\setacl
I changed the files according to the changes I documented in Any plans to upgrade SetACL to the new version? · Issue #309 · bcurran3/ChocolateyPackagesFollowing the steps from the above documentation link, I started with
[choco pack](https://docs.chocolatey.org/en-us/create/commands/pack).
in that directory with the below output indicating thatsetacl.3.1.2.0.nupkg
is the package name:If the last line had been as below, then it would have been clear to me that the package name is
setacl
and the package filename isC:\Users\jeroenp\Documents\Versioned\github.com\jpluimers\bcurran3.ChocolateyPackages\setacl\setacl.3.1.2.0.nupkg
Now from a UAC elevated command prompt I ran
choco install setacl.3.1.2.0.nupkg --debug --verbose --source=.
with this output start:System Details
[System.Environment]::OSVersion.version.tostring()
):10.0.19044.0
$PSVersionTable
):choco --version
):1.1.0
Output Log
Full Log Output
Full log in: https://gist.github.com/jpluimers/12154f5ce5500e1a7f3cb6a3596f0523
The text was updated successfully, but these errors were encountered: