Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- uses: actions/checkout@v7
- uses: actions/setup-go@v7
with:
go-version-file: go.mod
go-version: 1.27.3
# internal/oracle and internal/difftest are their own modules with
# their own go.sum; actions/setup-go only caches the root one by
# default.
Expand Down
18 changes: 18 additions & 0 deletions flake.lock

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

24 changes: 17 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
{
description = "A Nix-flake-based Go 1.26 development environment";
description = "A Nix-flake-based Go 1.27.3 development environment";

inputs = {
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.2511";
nixpkgs-unstable.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1";

go-tooling = {
url = "github:NixOS/nixpkgs/8cec5ef1131078ea76689e84c362b0ed6a1fb6a1";
flake = false;
};

nur = {
url = "github:nix-community/NUR";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs = { self, nixpkgs, nixpkgs-unstable, nur }:
outputs = { self, nixpkgs, nixpkgs-unstable, nur, go-tooling }:
let
supportedSystems = [
"x86_64-linux"
Expand Down Expand Up @@ -40,24 +45,29 @@
{
devShells = forEachSupportedSystem ({ pkgs, pkgs-unstable, system }:
let
go = go127;
go127 = pkgs.callPackage "${go-tooling}/pkgs/development/compilers/go/1.27.nix" {
inherit buildGo127Module;
};
buildGo127Module = pkgs.buildGoModule.override { go = go127; };
golangci-lint = pkgs.callPackage "${go-tooling}/pkgs/by-name/go/golangci-lint/package.nix" {
inherit buildGo127Module;
};
stablePackages = with pkgs; [
antlr
ginkgo
go_1_26
goperf
gotools
just
];
unstablePackages = with pkgs-unstable; [
golangci-lint
];
goPackages = [ go golangci-lint ];
otherPackages = [
pkgs.nur.repos.goreleaser.goreleaser-pro
];
in
{
default = pkgs.mkShell {
packages = stablePackages ++ unstablePackages ++ otherPackages;
packages = stablePackages ++ goPackages ++ otherPackages;
};
}
);
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ module github.com/formancehq/numscript

go 1.26.0

toolchain go1.27.3

require (
github.com/antlr4-go/antlr/v4 v4.13.1
github.com/getsentry/sentry-go v0.43.0
Expand Down
2 changes: 2 additions & 0 deletions internal/difftest/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ module github.com/formancehq/numscript/internal/difftest

go 1.26.0

toolchain go1.27.3

require (
github.com/formancehq/go-libs/v5 v5.6.1
github.com/formancehq/numscript v0.0.0-00010101000000-000000000000
Expand Down
2 changes: 2 additions & 0 deletions internal/oracle/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ module github.com/formancehq/numscript/internal/oracle

go 1.26.0

toolchain go1.27.3

require (
github.com/antlr/antlr4/runtime/Go/antlr v1.4.10
github.com/formancehq/go-libs/v5 v5.6.1
Expand Down
Loading