Skip to content

fix(cli): Write rule load trace to ~/.opentaint logs dir#189

Merged
misonijnik merged 1 commit into
mainfrom
misoninik/fix-rule-load-trace-dir
Jun 16, 2026
Merged

fix(cli): Write rule load trace to ~/.opentaint logs dir#189
misonijnik merged 1 commit into
mainfrom
misoninik/fix-rule-load-trace-dir

Conversation

@misonijnik

Copy link
Copy Markdown
Member

The rule load trace was written under os.TempDir(). Store it in the per-project log directory (~/.opentaint/logs//) so it lives alongside the logs and is cleaned up by opentaint prune --logs.

Encapsulate the trace-file naming convention in the load_trace lib via RuleLoadTracePathIn, keeping the cmd call site free of filename details, and drop the now-unused tmp PathBuilder defaults.

The Semgrep rule load trace was written under os.TempDir(); store it in
the per-project log directory (~/.opentaint/logs/<slug-hash>/) so it
lives alongside the logs and is cleaned up by `opentaint prune --logs`.

Encapsulate the trace-file naming convention in the load_trace lib via
RuleLoadTracePathIn, keeping the cmd call site free of filename details,
and drop the now-unused tmp PathBuilder defaults.
@misonijnik misonijnik marked this pull request as ready for review June 16, 2026 17:48
@misonijnik misonijnik merged commit 17041a0 into main Jun 16, 2026
14 checks passed
@misonijnik misonijnik deleted the misoninik/fix-rule-load-trace-dir branch June 16, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant