diff options
author | Moritz Sanft <58110325+msanft@users.noreply.github.com> | 2024-06-09T20·22+0200 |
---|---|---|
committer | Moritz Sanft <moritz.sanft@outlook.de> | 2024-06-10T07·40+0000 |
commit | b16ddb54b0327606cec2df220eaabb1328e18e3e (patch) | |
tree | e067a252aeb4b22e66a2c384920cb3aab5b83fa3 /ops/kontemplate/default.nix | |
parent | fa29d7344e2e631455f3759736234f083d741f71 (diff) |
chore(kontemplate): Migrate to Go modules r/8235
This switches to [Go modules](https://go.dev/blog/using-go-modules), which have now been the standard for dependency management in Go codebases for a while. In addition to initializing a new Go module, it also updates the paths of some gopkg.in dependencies, which are deprecated as well. Change-Id: Ie5c9faa415a65ab76cbe59f4afb437a9250be392 Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> Reviewed-on: https://cl.tvl.fyi/c/depot/+/11773 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'ops/kontemplate/default.nix')
-rw-r--r-- | ops/kontemplate/default.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ops/kontemplate/default.nix b/ops/kontemplate/default.nix index 1190869c3fda..be01f9e4f698 100644 --- a/ops/kontemplate/default.nix +++ b/ops/kontemplate/default.nix @@ -12,12 +12,11 @@ { lib, pkgs, ... }: -pkgs.buildGoPackage rec { +pkgs.buildGoModule rec { name = "kontemplate-${version}"; version = "canon"; src = ./.; - goPackagePath = "github.com/tazjin/kontemplate"; - goDeps = ./deps.nix; + buildInputs = [ pkgs.parallel ]; # Enable checks and configure check-phase to include vet: @@ -28,6 +27,8 @@ pkgs.buildGoPackage rec { done ''; + vendorHash = "sha256-xPGVM2dq5fAVOiuodOXhDm3v3k+ncNLhlk6aCtF5S9E="; + meta = with lib; { description = "A resource templating helper for Kubernetes"; homepage = "http://kontemplate.works/"; |