Skip to content
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

git: Allow the update script to target non-latest versions #85278

Merged
merged 1 commit into from Apr 15, 2020

Conversation

jamesottaway
Copy link
Contributor

Motivation for this change

This came in handy when I wanted to bump a patch version while avoiding a new minor version. See #85277.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@jamesottaway jamesottaway changed the title Allow the Git update script to target non-latest versions git: Allow the update script to target non-latest versions Apr 15, 2020
This came in handy when I wanted to bump a patch version while avoiding
a new minor version.
@Mic92 Mic92 merged commit 924e5cd into NixOS:master Apr 15, 2020
@jamesottaway jamesottaway deleted the git-update-script branch April 15, 2020 22:57
primeos added a commit that referenced this pull request Apr 21, 2020
The syntax is ${parameter:-word} (i.e. previously this used
"latestTag" instead of the actual value).
(Fixes a regression from #85278.)

Also: Even though getting the latest tag isn't really security critical
(as long as Git itself is secure against untrusted input), I'd prefer to
switch from the Git to the HTTPS protocol (for authentication of the
server and encryption + uses a standard port).
@primeos
Copy link
Member

primeos commented Apr 21, 2020

Quick FYI: This worked as expected with $1 but broke the default case, I pushed a fix in 6660421 (I hope no one minds the HTTPS change).

Note: This isn't a big deal at all, but I like to drop a comment on the PR in such cases as an FYI and to better track fixes ;)

primeos added a commit to primeos/nixpkgs that referenced this pull request Apr 22, 2020
The syntax is ${parameter:-word} (i.e. previously this used
"latestTag" instead of the actual value).
(Fixes a regression from NixOS#85278.)

Also: Even though getting the latest tag isn't really security critical
(as long as Git itself is secure against untrusted input), I'd prefer to
switch from the Git to the HTTPS protocol (for authentication of the
server and encryption + uses a standard port).

(cherry picked from commit 6660421)
stigok pushed a commit to stigok/nixpkgs that referenced this pull request Jun 12, 2020
The syntax is ${parameter:-word} (i.e. previously this used
"latestTag" instead of the actual value).
(Fixes a regression from NixOS#85278.)

Also: Even though getting the latest tag isn't really security critical
(as long as Git itself is secure against untrusted input), I'd prefer to
switch from the Git to the HTTPS protocol (for authentication of the
server and encryption + uses a standard port).

(cherry picked from commit 6660421)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants