Skip to content

Commit

Permalink
build: Update tools
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmidyson committed Dec 18, 2023
1 parent fd94925 commit 2a5cbba
Show file tree
Hide file tree
Showing 9 changed files with 217 additions and 338 deletions.
6 changes: 3 additions & 3 deletions devbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
"findutils@latest",
"ginkgo@latest",
"git@latest",
"path:./hack/flakes/go-mod-upgrade",
"gnused@latest",
"gnugrep@latest",
"gnumake@latest",
"go@latest",
"gojq@latest",
"path:./hack/flakes/golangci-lint",
"golines@latest",
"goreleaser@latest",
"gotestsum@latest",
"kubernetes-helm@latest",
"pre-commit@latest",
"shfmt@latest",
"upx@latest"
"upx@latest",
"path:./hack/flakes#go-mod-upgrade",
"path:./hack/flakes#golangci-lint"
]
}
232 changes: 116 additions & 116 deletions devbox.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

61 changes: 61 additions & 0 deletions hack/flakes/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions hack/flakes/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
description = "Useful flakes for golang and Kubernetes projects";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = inputs @ { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
with nixpkgs.legacyPackages.${system}; rec {
packages = rec {
golangci-lint = pkgs.golangci-lint.override { buildGoModule = buildGo121Module; };

go-mod-upgrade = buildGo121Module rec {
name = "go-mod-upgrade";
version = "0.9.1";
src = fetchFromGitHub {
owner = "oligot";
repo = "go-mod-upgrade";
rev = "v${version}";
hash = "sha256-+C0IMb7MU1fq/P0/tTUNmzznZ1q5M69491pO5yBZlVs=";
};
doCheck = false;
subPackages = [ "." ];
vendorHash = "sha256-8rbRxtOiKmnf68kjsUCXaZf+MHI1n5aXa91Aneq9SKo=";
ldflags = [ "-s" "-w" "-X" "main.version=v${version}" ];
};
};

formatter = alejandra;
}
);
}
44 changes: 0 additions & 44 deletions hack/flakes/go-mod-upgrade/flake.lock

This file was deleted.

64 changes: 0 additions & 64 deletions hack/flakes/go-mod-upgrade/flake.nix

This file was deleted.

44 changes: 0 additions & 44 deletions hack/flakes/golangci-lint/flake.lock

This file was deleted.

64 changes: 0 additions & 64 deletions hack/flakes/golangci-lint/flake.nix

This file was deleted.

0 comments on commit 2a5cbba

Please sign in to comment.