Skip to content

Commit b1ac0e7

Browse files
committed
specify go minor version
1 parent 89cae69 commit b1ac0e7

File tree

7 files changed

+28
-10
lines changed

7 files changed

+28
-10
lines changed

.direnv/flake-profile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
flake-profile-2-link
1+
flake-profile-4-link

.direnv/flake-profile-2-link

-1
This file was deleted.

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.22 as builder
1+
FROM golang:1.22.4 as builder
22
ENV GOOS=linux
33
ENV CGO_ENABLED=0
44
ENV GO111MODULE=on

cmd/kolide-event-handler/main.go

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import (
2727

2828
var (
2929
kolideSigningSecret string
30-
kolideApiToken string
3130
grpcAuthToken string
3231
)
3332

flake.lock

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+7
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,15 @@
2525
perSystem = {
2626
config,
2727
pkgs,
28+
system,
2829
...
2930
}: {
31+
_module.args.pkgs = import inputs.nixpkgs {
32+
inherit system;
33+
overlays = [
34+
(import ./nix/overlay.nix)
35+
];
36+
};
3037
devshells.default = {
3138
packages =
3239
(with pkgs; [

nix/overlay.nix

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
let
2+
goVersion = "1.22.4";
3+
goSha256 = "sha256-/tcgZ45yinyjC6jR3tHKr+J9FgKPqwIyuLqOIgCPt4Q=";
4+
in
5+
_final: prev: {
6+
go = prev.go.overrideAttrs (_old: {
7+
version = goVersion;
8+
src = prev.fetchurl {
9+
url = "https://go.dev/dl/go${goVersion}.src.tar.gz";
10+
hash = goSha256;
11+
};
12+
});
13+
}

0 commit comments

Comments
 (0)