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

terraform-providers: updates and cleanups #86053

Merged
merged 4 commits into from Apr 29, 2020

Conversation

zimbatm
Copy link
Member

@zimbatm zimbatm commented Apr 26, 2020

Motivation for this change
  • run update-all
  • move the ibm provider to the update-all script
  • add the sops provider
  • add the vpsadmin provider
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.

hash = "sha256-+6jRjcManQdoKh7ewOJI1UaulY5OSbkIUHmtrBI33u4=";
};

modSha256 = "sha256-gz+t50uHFj4BQnJg6kOJI/joJVE+usLpVzTqziek2wY=";
Copy link
Contributor

Choose a reason for hiding this comment

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

They don't use a vendor folder, right?

Copy link
Member

Choose a reason for hiding this comment

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

Even if they do, buildGoModule does not support invocations without modSha256 at the moment.

Copy link
Contributor

Choose a reason for hiding this comment

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

Well, we do have somewhat limited support for these kind of terraform modules with patchGoModVendor - maybe open an issue upstream and ask if they plan to package their modules in the future too?

Then we could use the generic updater framework we already have. cc @mmilata

Copy link
Member

Choose a reason for hiding this comment

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

It's possible to use nix-prefetch to get the latest checksum. I use this in nix-update

Copy link
Member Author

@zimbatm zimbatm Apr 27, 2020

Choose a reason for hiding this comment

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

They don't use a vendor folder, right?

I wish, otherwise I would have used the other method.

Copy link
Member Author

@zimbatm zimbatm Apr 27, 2020

Choose a reason for hiding this comment

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

There are a number of improvements that we could do around the update-all script that are out of scope for this PR but that would nice to have soon:

  • avoid re-fetching if the version hasn't change. At the moment update-all prefeteches all the repos even if they are already in data.nix
  • support a "go repo type" as a second argument to the slugs to handle these other cases
  • plug with the rytantm updater bot somehow

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree. I didn't meant to say this is in-scope for this PR.

But it'd be good to at least have an issue opened to track these things.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it's good to have the discussion. I don't know if an extra issue is going to help given how much issues are open already.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if people will find it if it's just here - I'd rather see it somewhere deep in the backlog, than just in our minds ;-)

@zimbatm zimbatm merged commit f3ce7c5 into NixOS:master Apr 29, 2020
@zimbatm zimbatm deleted the terraform-provider-vpsadmin branch April 29, 2020 12:43
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