chore(kontemplate): Migrate to Go modules
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>
This commit is contained in:
parent
fa29d7344e
commit
b16ddb54b0
6 changed files with 106 additions and 116 deletions
|
|
@ -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/";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue