Skip to content

Commit

Permalink
fix update-vendor-hash (#791)
Browse files Browse the repository at this point in the history
* set go v1.22 for lint

* bump go version for nix flake

* bump golangci/golangci-lint
  • Loading branch information
hilmarf authored Jun 4, 2024
1 parent 2f02322 commit a8a2781
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ linters:
- nlreturn # Use empty line at least before return/break/continue.
- goerr113 # Do not define dynamic errors with Errorf.
- varnamelen # m, d, p < These are not so meaningful variables.
- testpackage # Blackbox testing is preffered.
- testpackage # Blackbox testing is preferred.
- funlen # Break long functions.
- gomnd # Give constant values a name with constants.
- ireturn # Accept interface, return concrate.
- ireturn # Accept interface, return concrete.
- nestif # Some nexted if statements are 8 or 9 deep.
- dupl # Check code duplications.
- cyclop # Complex functions are not good.
Expand Down
6 changes: 3 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

inputs = {
# NixPkgs (nixos-23.11)
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
};

outputs = { self, nixpkgs, ... }:
Expand All @@ -28,7 +28,7 @@
inherit (pkgs) stdenv lib ;
in
{
${pname} = pkgs.buildGo121Module rec {
${pname} = pkgs.buildGo122Module rec {
inherit pname self;
version = lib.fileContents ./VERSION;
gitCommit = if (self ? rev) then self.rev else self.dirtyRev;
Expand Down Expand Up @@ -86,7 +86,7 @@
{
default = pkgs.mkShell {
buildInputs = with pkgs; [
go_1_21 # golang 1.21
go_1_22 # golang 1.22
gopls # go language server
gotools # go imports
go-tools # static checks
Expand Down

0 comments on commit a8a2781

Please sign in to comment.