plugins/dap-go: add buildFlags option

This commit is contained in:
Haseeb Majid 2023-11-15 23:28:08 +00:00 committed by GitHub
parent 2fcbe50f4b
commit 356e0e855b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -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.";
};
};
@ -41,6 +43,7 @@ in {
delve = with delve; {
inherit path port args;
initialize_timeout_sec = initializeTimeoutSec;
build_flags = buildFlags;
};
};
in

View file

@ -21,6 +21,7 @@
initializeTimeoutSec = 20;
port = "$\{port}";
args = [];
buildFlags = "-tags=unit";
};
};
};