Skip to content

Commit

Permalink
Automatically include the name of the action's binary in the crash lo…
Browse files Browse the repository at this point in the history
…g collection
  • Loading branch information
grahamc committed Aug 26, 2024
1 parent c9c4c80 commit a3bf4ee
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
6 changes: 5 additions & 1 deletion dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export type ActionOptions = {

// Collect backtraces from segfaults and other failures from binaries that start with these names.
//
// Default: `[ "nix" ]`.
// Default: `[ "nix", "determinate-nixd", ActionOptions.name ]`.
binaryNamePrefixes?: string[];
};

Expand Down Expand Up @@ -934,7 +934,11 @@ function makeOptionsConfident(
fetchStyle: actionOptions.fetchStyle,
legacySourcePrefix: actionOptions.legacySourcePrefix,
requireNix: actionOptions.requireNix,
binaryNamePrefixes: actionOptions.binaryNamePrefixes || ["nix"],
binaryNamePrefixes: actionOptions.binaryNamePrefixes || [
"nix",
"determinate-nixd",
actionOptions.name,
],
};

actionsCore.debug("idslib options:");
Expand Down

0 comments on commit a3bf4ee

Please sign in to comment.