Skip to content

Commit

Permalink
Merge pull request #306 from DeterminateSystems/update-go-deps
Browse files Browse the repository at this point in the history
Update Go dependencies
  • Loading branch information
grahamc authored Dec 19, 2023
2 parents 483b95e + b19d0a8 commit 22a258b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 30 deletions.
21 changes: 0 additions & 21 deletions nix/templates/pkg/go/flake.lock

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

10 changes: 3 additions & 7 deletions nix/templates/pkg/go/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@

inputs = {
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.2305.491812.tar.gz";
gitignore = {
url = "github:hercules-ci/gitignore.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs = { self, nixpkgs, gitignore }:
outputs = { self, nixpkgs }:
let
# Systems supported
allSystems = [
Expand All @@ -28,8 +24,8 @@
packages = forAllSystems ({ pkgs }: {
default = pkgs.buildGoModule {
name = "zero-to-nix-go";
src = gitignore.lib.gitignoreSource ./.;
vendorSha256 = "sha256-fwJTg/HqDAI12mF1u/BlnG52yaAlaIMzsILDDZuETrI=";
src = ./.;
vendorSha256 = "sha256-pYnN8rxXNNLRegvJySwAyMUPBmnhSiDSHfMQpjB9Qjs=";
};
});
};
Expand Down
2 changes: 1 addition & 1 deletion nix/templates/pkg/go/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ require (
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.12 // indirect
golang.org/x/arch v0.6.0 // indirect
golang.org/x/crypto v0.16.0 // indirect
golang.org/x/crypto v0.17.0 // indirect
golang.org/x/net v0.19.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/text v0.14.0 // indirect
Expand Down
2 changes: 2 additions & 0 deletions nix/templates/pkg/go/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ golang.org/x/arch v0.6.0 h1:S0JTfE48HbRj80+4tbvZDYsJ3tGv6BUU3XxyZ7CirAc=
golang.org/x/arch v0.6.0/go.mod h1:FEVrYAQjsQXMVJ1nsMoVVXPZg6p2JE2mx8psSWTDQys=
golang.org/x/crypto v0.16.0 h1:mMMrFzRSCF0GvB7Ne27XVtVAaXLrPmgPC7/v0tkwHaY=
golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4=
golang.org/x/crypto v0.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k=
golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4=
golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c=
golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
Expand Down
2 changes: 1 addition & 1 deletion src/pages/start/4.nix-build.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ Here's the package definition that enables us to build this Go package:
```nix filename=flake.nix
packages.default = pkgs.buildGoModule {
name = "zero-to-nix-go";
src = gitignore.lib.gitignoreSource ./.;
src = ./.;
vendorSha256 = "sha256-fwJTg/HqDAI12mF1u/BlnG52yaAlaIMzsILDDZuETrI=";
};
```
Expand Down

1 comment on commit 22a258b

@vercel
Copy link

@vercel vercel bot commented on 22a258b Dec 19, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.