1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-02 23:21:02 +01:00
home-manager/tests/modules/programs/go/packages-invalid-main-gopath.nix

20 lines
492 B
Nix

{ config, ... }:
{
programs.go = {
enable = true;
env.GOPATH = [
"/not/my/home/mygo"
"/another/go"
"/yet/another/go"
];
packages = {
"golang.org/x/text" = ./packages/text;
"golang.org/x/time" = ./packages/time;
};
};
test.asserts.assertions.expected = [
"The first element of `programs.go.env.GOPATH must be an absolute path that points to a directory inside ${config.home.homeDirectory} if `programs.go.packages` is set."
];
}