-
Notifications
You must be signed in to change notification settings - Fork 907
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
Ensure nuspec files generated from the choco new command use UTF-8 without a byte order mark #1364
Comments
This one is open for up for grabs. |
I would like to have a go if I may? |
…F8 files without BOM.
anyone have time to show me where im going wrong? |
@Benny1007 are you still interested in this? At a quick glance on your PR, the "changed" but untouched files mostly seem to be registering as changed due to something in your system stripping out the BOM from those files; I think that ought to be largely OK. 🙂 |
I found a bunch of my nuspec files with BOM. I later made https://chocolatey.org/packages/choco-nuspec-checker to check and fix them automatically... and then got a little ADHD with it. :) |
Changes the encoding of `.nuspec` files created from templates to UTF8 with BOM to UTF8 without BOM according to best practices in the creating packages documentation. Applies to both the default template and to custom templates. Adjusted template services tests to include UTF8 no BOM files, otherwise nuspec files would not be detected anymore.
Changes the encoding of `.nuspec` files created from templates to UTF8 with BOM to UTF8 without BOM according to best practices in the creating packages documentation. Applies to both the default template and to custom templates. Adjusted template services tests to include UTF8 no BOM files, otherwise nuspec files would not be detected anymore.
Changes the encoding of `.nuspec` files created from templates to UTF8 with BOM to UTF8 without BOM according to best practices in the creating packages documentation. Applies to both the default template and to custom templates. Adjusted template services tests to include UTF8 no BOM files, otherwise nuspec files would not be detected anymore.
(GH-1364) Template create .nuspec encoded without BOM
* stable: (#1861) Improves terminology in help documentation (#1998) Add authorization header to Get-WebFile (maint) Repalce RawGit with raw.githack.com CDN (#1899) Remove unused variables (GH-1060) Add BeforeInstall parameter to Install-ChocolateyPackage.ps1 (maint) Improve log message (GH-2092) Take all registry keys into account (GH-1364) Template create .nuspec encoded without BOM (#1866) Limit pending package removal to top level (GH-2203) Get-ChocolateyUnzip add unzipLocation alias (GH-1889) Fix: Removal of ApiKey broken (#2114) Remove unused variable (GH-2048) update deprecation note to outdated (maint) Spelling and grammar fixes (maint) Replace tabs with spaces (#2078) Skip importing Chocolatey GUI Extension (#2227) Use latest Mono and Ubuntu on Travis
…GH2112 * 'GH2112' of https://github.com/steviecoaster/choco: (chocolatey#2112) Add msp support to Install helper (maint) Switch to using a Regex match (maint) Change formatting (maint) Remove use of PowerShell aliases (maint) Replace " with ' (chocolatey#2044) Fix for changing $env:Temp (chocolatey#2259) Switched to versioned NuGet.Core (chocolatey#2111) Deep copy config (chocolatey#2244) Add Mac build into main workflow (chocolatey#2238) Mono build don't hardcode xbuild path (maint) Fix artifact paths on AppVeyor (chocolatey#2244) Fix syntax for running on Windows (chocolatey#2244) Initial workflow for Windows and Ubuntu (doc) Remove Mono instructions for other distributions (doc) Add Ubuntu 20.04 mono install instructions (chocolatey#2227) Bump Mono version in Dockerfile and README (chocolatey#2236) Mono test work with merged usr systems (chocolatey#2190) Clarify help for SpecificFolder parameter (chocolatey#1962) Use different message on error (chocolatey#1861) Improves terminology in help documentation (chocolatey#1998) Add authorization header to Get-WebFile (maint) Repalce RawGit with raw.githack.com CDN (chocolatey#1899) Remove unused variables (chocolateyGH-1060) Add BeforeInstall parameter to Install-ChocolateyPackage.ps1 (maint) Improve log message (chocolateyGH-2092) Take all registry keys into account (chocolateyGH-1364) Template create .nuspec encoded without BOM (chocolatey#1866) Limit pending package removal to top level (chocolateyGH-2203) Get-ChocolateyUnzip add unzipLocation alias (chocolateyGH-1889) Fix: Removal of ApiKey broken (chocolatey#2114) Remove unused variable (chocolateyGH-2048) update deprecation note to outdated (maint) Spelling and grammar fixes (maint) Replace tabs with spaces (chocolatey#2078) Skip importing Chocolatey GUI Extension (chocolatey#2227) Use latest Mono and Ubuntu on Travis (chocolatey#2205) Remove mention of private repository (chocolatey#2205) Update remaining URLs to new location (maint) Remove unnecessary whitespace (chocolatey#2231) Change default repository URL (maint) Remove unnecessary whitespace (chocolatey#2205) Update all chocolatey.org/docs URLs (maint) Remove unnecessary whitespace (chocolatey#2205) Update automatic-packages docs links (doc) Update to prefer # rather than GH- (maint) Fix replacement (maint) Revert change to earlier commit (maint) Fix spelling mistake (maint) Fix spelling mistake (doc) Update script to Statiq format (maint) Add missing backtick in example (maint) Added explicit link to new function name (maint) Fix spelling mistake (maint) Fix spelling mistake (maint) Fix spelling mistake (maint) Fix spelling mistake (maint) Fix spelling mistake (maint) Fix spelling mistake (maint) Remove generated docs files (maint) Add docs/generated folder to ignore list (chocolateyGH-2105) Update link to Chocolatey workshop
I'm totally on board with this:
https://chocolatey.org/docs/create-packages#character-encoding
But choco new is not. It's currently creating UTF-8-BOM nuspecs.
Moved from https://github.com/chocolatey/chocolatey.org/issues/527
The text was updated successfully, but these errors were encountered: