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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

argocd-vault-plugin: fix version output #270985

Merged
merged 1 commit into from Jan 23, 2024

Conversation

maxbrunet
Copy link
Member

Description of changes

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Priorities

Add a 馃憤 reaction to pull requests you find important.

@maxbrunet maxbrunet force-pushed the fix/argocd-vault-plugin/version branch from 97bc9d1 to f582ed9 Compare December 8, 2023 23:20
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/1016/86

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/3146

@rjpcasalino
Copy link
Contributor

rjpcasalino commented Dec 26, 2023

Result of nixpkgs-review pr 270985 run on x86_64-linux 1

1 package built:
  • argocd-vault-plugin
[nix-shell:~/.cache/nixpkgs-review/pr-270985/results/argocd-vault-plugin/bin]$ ./argocd-vault-plugin version
argocd-vault-plugin v1.17.0 (unknown) BuildDate: 1970-01-01T00:00:00Z

@@ -13,9 +18,23 @@ buildGoModule rec {

vendorHash = "sha256-0PrGrcS8Gx0cVImGrlmXlycFgWCTLjg2ISi0OhYoPpw=";

ldflags = [
"-X=github.com/argoproj-labs/argocd-vault-plugin/version.Version=v${version}"
"-X=github.com/argoproj-labs/argocd-vault-plugin/version.BuildDate=1970-01-01T00:00:00Z"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why 1970-01-01T00:00:00Z as BuildDate?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would builtins.currentTime make sense here at all? Just curious.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1970-01-01T00:00:00Z is the Unix epoch, it is the "zero" of Unix time basically.

builtins.currentTime is impure, using it would result in non-reproducible builds

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blah, duh! Thx

Copy link
Contributor

@rjpcasalino rjpcasalino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good and builds

@pbsds pbsds merged commit 1bf7836 into NixOS:master Jan 23, 2024
22 checks passed
@maxbrunet maxbrunet deleted the fix/argocd-vault-plugin/version branch February 3, 2024 21:53
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

4 participants