NetBird 0.75.0-rc.5#202
Conversation
📝 WalkthroughWalkthroughThis PR updates the NetBird Chocolatey package from version 0.74.2 to 0.75.0-rc.5 by updating the nuspec version metadata and the install script's version constant and checksum64 value used for MSI verification. ChangesVersion Bump
Estimated code review effort: 1 (Trivial) | ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@netbird.nuspec`:
- Line 5: The nuspec version is set to a prerelease RC, which prevents standard
Chocolatey installs/upgrades from resolving without --pre. Update the version in
netbird.nuspec to a stable release if this package is meant for default
community-feed users, or keep the prerelease only if the RC rollout is
intentional. Locate the version field in the nuspec and adjust it accordingly.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 151d5cfb-dd9f-4984-a563-73abea2f9f16
📒 Files selected for processing (2)
netbird.nuspectools/chocolateyinstall.ps1
| <metadata> | ||
| <id>netbird</id> | ||
| <version>0.74.2</version> | ||
| <version>0.75.0-rc.5</version> |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🌐 Web query:
Does the official Chocolatey Community Repository support NuGet SemVer 2.0.0 dot-notation prerelease versions like 0.75.0-rc.5 for choco install without --pre?
💡 Result:
No, the official Chocolatey Community Repository does not support installing a prerelease version (such as 0.75.0-rc.5) without the --pre (or --prerelease) flag [1][2]. Even though Chocolatey CLI v2.0.0 and later fully support SemVer 2.0.0 [3][4], which allows for dot-notation prerelease identifiers [3][5], the Chocolatey CLI still requires the explicit --pre flag when installing a package version marked as a prerelease [1][2]. This requirement ensures that users do not accidentally install unstable or experimental versions of packages when performing standard installation or upgrade operations [1]. If you attempt to install a specific prerelease version without the --pre flag, Chocolatey will generally fail to resolve the package or, in some cases, revert to the latest stable release [6][2]. To successfully install a specific prerelease version like 0.75.0-rc.5, you must include the --pre flag in your command [7][8][9]: choco install <package_name> --version 0.75.0-rc.5 --pre
Citations:
- 1: https://docs.chocolatey.org/en-us/choco/commands/install/
- 2: choco pack accepts pre-release tags in versions but not choco install chocolatey/choco#1186
- 3: https://docs.chocolatey.org/en-us/choco/new-in-v2/
- 4: Support Semantic Versioning 2.0.0 (semver) chocolatey/choco#1610
- 5: https://docs.chocolatey.org/en-us/guides/upgrading-to-chocolatey-v2-v6/
- 6: Trying to install a prerelease package without
--prein presence of a release package installs the release package chocolatey/choco#750 - 7: Installing a prerelease package using --version fails to resolve prerelease dependencies chocolatey/choco#1575
- 8: https://community.chocolatey.org/packages/aqua/2.0.0-rc5
- 9: https://community.chocolatey.org/packages/flux/2.0.0-rc5
🏁 Script executed:
#!/bin/bash
set -euo pipefail
printf 'Repo files mentioning chocolatey/nuspec/versioning:\n'
git ls-files | rg -n '(^|/)(netbird\.nuspec|chocolatey|choco|nuspec|packaging|release|version)' || true
printf '\nRelevant references:\n'
rg -n --hidden --no-ignore-vcs '0\.75\.0-rc\.5|prerelease|pre-release|--pre|--prerelease|Chocolatey|community\.chocolatey|SemVer' .Repository: netbirdio/choco-netbird
Length of output: 1623
🏁 Script executed:
#!/bin/bash
set -euo pipefail
printf 'netbird.nuspec:\n'
sed -n '1,80p' netbird.nuspec
printf '\n.github/workflows/update.yml:\n'
sed -n '1,220p' .github/workflows/update.yml
printf '\n.github/workflows/release.yml:\n'
sed -n '1,260p' .github/workflows/release.yml
printf '\nREADME.md:\n'
sed -n '1,120p' README.md
printf '\ntools/chocolateyinstall.ps1:\n'
sed -n '1,120p' tools/chocolateyinstall.ps1Repository: netbirdio/choco-netbird
Length of output: 7930
🏁 Script executed:
#!/bin/bash
set -euo pipefail
printf 'netbird.nuspec (line-numbered):\n'
cat -n netbird.nuspec | sed -n '1,80p'
printf '\n.github/workflows/update.yml (line-numbered):\n'
cat -n .github/workflows/update.yml | sed -n '1,240p'
printf '\n.github/workflows/release.yml (line-numbered):\n'
cat -n .github/workflows/release.yml | sed -n '1,260p'
printf '\nREADME.md (line-numbered):\n'
cat -n README.md | sed -n '1,140p'
printf '\ntools/chocolateyinstall.ps1 (line-numbered):\n'
cat -n tools/chocolateyinstall.ps1 | sed -n '1,140p'Repository: netbirdio/choco-netbird
Length of output: 9543
Avoid publishing the prerelease version as the default Chocolatey package
0.75.0-rc.5 will require --pre, so choco install/upgrade netbird from the community feed won’t resolve for standard users. If this is intended as an RC rollout, keep it; otherwise use a stable version here.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@netbird.nuspec` at line 5, The nuspec version is set to a prerelease RC,
which prevents standard Chocolatey installs/upgrades from resolving without
--pre. Update the version in netbird.nuspec to a stable release if this package
is meant for default community-feed users, or keep the prerelease only if the RC
rollout is intentional. Locate the version field in the nuspec and adjust it
accordingly.
Bumped NetBird version to 0.75.0-rc.5