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.libvirt: 0.5.1 -> 0.6.1 #81497

Merged
merged 1 commit into from
Mar 3, 2020

Conversation

gila
Copy link
Contributor

@gila gila commented Mar 2, 2020

Motivation for this change

The current version of the plugin does not work with nixpkgs-unstable as the libvirt daemon is to new for the old plugin

Things done

Updated the plugin and terraformed away.

  • 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.

@Mic92
Copy link
Member

Mic92 commented Mar 2, 2020

Let me know, if we need to backport it to 20.03 as well (i.e. it's libvirt is too new too.)


goPackagePath = "github.com/dmacvicar/terraform-provider-libvirt";

src = fetchFromGitHub {
owner = "dmacvicar";
repo = "terraform-provider-libvirt";
rev = "v${version}";
sha256 = "0shnj5byqj3qzyqniiy1dcygd8xw1h2bx9z6mgcydw8k64fkm4bw";
sha256 = "1lbxz75yi0vkay3iza07bbm3x3rdx54fzqsjs41xbcpihxap1fiz";
Copy link
Member

Choose a reason for hiding this comment

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

I get a different checksum here using nixpkgs-review:

nix-shell -p terraform-providers.libvirt
these derivations will be built:
  /nix/store/0g71whp3rzsqlxj8010mjwpppdwc70q7-source.drv
  /nix/store/mqp2mcags9np697f8m6936lc39p89cs5-terraform-provider-libvirt-0.6.1.drv
building '/nix/store/0g71whp3rzsqlxj8010mjwpppdwc70q7-source.drv'...

trying https://github.com/dmacvicar/terraform-provider-libvirt/archive/v0.6.1.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   144  100   144    0     0   1241      0 --:--:-- --:--:-- --:--:--  1241
100 21.2M    0 21.2M    0     0  8849k      0 --:--:--  0:00:02 --:--:--  9.9M
unpacking source archive /build/v0.6.1.tar.gz
hash mismatch in fixed-output derivation '/nix/store/a147nzk43kk7rzcda5gcay8kzxrgakmb-source':
  wanted: sha256:1lbxz75yi0vkay3iza07bbm3x3rdx54fzqsjs41xbcpihxap1fiz
  got:    sha256:1l2n97nj6g44n7bhnbjwmv36xi6754p4iq2qnpkdh39x4384a0zz
cannot build derivation '/nix/store/mqp2mcags9np697f8m6936lc39p89cs5-terraform-provider-libvirt-0.6.1.drv': 1 dependencies couldn't be built
error: build of '/nix/store/mqp2mcags9np697f8m6936lc39p89cs5-terraform-provider-libvirt-0.6.1.drv' failed

@Mic92
Copy link
Member

Mic92 commented Mar 2, 2020

It also seems like @GrahamcOfBorg get this error as well.

@gila gila force-pushed the terraform-provider-libvirt branch from 73aa952 to c1b5cfe Compare March 2, 2020 11:20
@gila
Copy link
Contributor Author

gila commented Mar 2, 2020

@Mic92 I do apologise, I've corrected the hash (that has was from 0.6.0 which I tried first). As for 20.x I think that would be very nice (I'm running the pre-release and hence I bumped into that and the plugin structure from terraform makes it (at least for me) very hard to override that the version of plugins (I could not get that to work at all to be honest).

@ofborg ofborg bot requested a review from Mic92 March 2, 2020 11:31
@Mic92 Mic92 merged commit ab86bf9 into NixOS:master Mar 3, 2020
@Mic92
Copy link
Member

Mic92 commented Mar 3, 2020

backport 943aff5

@Janik-Haag Janik-Haag added the 12. first-time contribution This PR is the author's first one; please be gentle! label Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants