chore(server): Update go version

Signed-off-by: Myzel394 <github.7a2op@simplelogin.co>
This commit is contained in:
Myzel394 2025-05-29 19:58:11 +02:00
parent 6fe41b5040
commit 5c6ca95912
No known key found for this signature in database
GPG Key ID: 3B955307C2FC2F11
2 changed files with 4 additions and 24 deletions

View File

@ -42,7 +42,7 @@
pname = "github.com/Myzel394/config-lsp";
version = version;
src = ./server;
vendorHash = "sha256-ttr45N8i86mSJX9Scy/Cf+YlxU5wAKMVb0YhKg28JKM=";
vendorHash = "sha256-ttr45N8i86mSJX9Scy/Cf+YlxU5wAKMVb0YhKg28JKM";
ldflags = [ "-s" "-w" ];
checkPhase = ''
go test -v $(pwd)/...
@ -68,6 +68,7 @@
in {
packages = {
default = server;
"server-uncompressed" = serverUncompressed;
"vs-code-extension-bare" = let
name = "config-lsp";
node-modules = pkgs.mkYarnPackage {
@ -133,28 +134,7 @@
};
devShells.default = let
version = "0.16.2";
ourGopls = pkgs.buildGoModule {
pname = "gopls";
inherit version;
modRoot = "gopls";
vendorHash = "sha256-ta94xPboFtSxFeuMtPX76XiC1O7osNl4oLk64wIyyz4=";
# https://github.com/golang/tools/blob/9ed98faa/gopls/main.go#L27-L30
ldflags = [ "-X main.version=v${version}" ];
doCheck = false;
# Only build gopls, and not the integration tests or documentation generator.
subPackages = [ "." ];
src = pkgs.fetchFromGitHub {
owner = "golang";
repo = "tools";
rev = "gopls/v${version}";
hash = "sha256-amy00VMUcmyjDoZ4d9/+YswfcZ+1/cGvFsA4sAmc1dA=";
};
};
ourGopls = pkgs.gopls;
in
pkgs.mkShell {
buildInputs = inputs ++ (with pkgs; [

View File

@ -1,6 +1,6 @@
module config-lsp
go 1.22.5
go 1.24
require (
github.com/antlr4-go/antlr/v4 v4.13.1