Skip to content

Commit d99ad6a

Browse files
committed
chore(build): restrict src
1 parent 5e0587a commit d99ad6a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

flake.nix

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,17 @@
7474
default = packages.app;
7575
app = pkgs.buildGoModule {
7676
name = "app";
77-
src = ./.;
77+
src = lib.fileset.toSource {
78+
root = ./.;
79+
fileset = lib.fileset.unions [
80+
./main.go
81+
./go.mod
82+
./go.sum
83+
./articles
84+
./pkg
85+
./static
86+
];
87+
};
7888
vendorHash = "sha256-nw5TouuxauSa520hidHom/iN6VxrGN/7By9spsJ5h6Y=";
7989
tags = [ "production" ];
8090
nativeBuildInputs = with pkgs; [

0 commit comments

Comments
 (0)