Skip to content

Commit

Permalink
plugins/dap-go: add buildFlags option
Browse files Browse the repository at this point in the history
  • Loading branch information
hmajid2301 authored Nov 15, 2023
1 parent 2fcbe50 commit 356e0e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/dap/dap-go.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ in {
'';

args = helpers.mkNullOrOption (types.listOf types.str) "Additional args to pass to dlv.";

buildFlags = helpers.defaultNullOpts.mkStr "" "Build flags to pass to dlv.";
};
};

Expand All @@ -41,6 +43,7 @@ in {
delve = with delve; {
inherit path port args;
initialize_timeout_sec = initializeTimeoutSec;
build_flags = buildFlags;
};
};
in
Expand Down
1 change: 1 addition & 0 deletions tests/test-sources/plugins/dap/dap-go.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
initializeTimeoutSec = 20;
port = "$\{port}";
args = [];
buildFlags = "-tags=unit";
};
};
};
Expand Down

0 comments on commit 356e0e8

Please sign in to comment.