fix(ci): move Go cache out of workspace to fix goreleaser dirty-tree check #154
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/OpenSpec
Kind/Security
Kind/Testing
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
RFC - Request For Comments
Reviewed/Confirmed
Reviewed/Duplicate
Reviewed/Invalid
Reviewed/Won't Fix
Status/Abandoned
Status/Blocked
Status/Need More Info
hermes-attempted
hermes-needs-clarification
hermes-ready
hermes-review
hermes-wip
human-required
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
agentic-forges/forgejo-mcp!154
Loading…
Reference in a new issue
No description provided.
Delete branch "refs/pull/154/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
v2.24.1 Tekton release run failed with:
Cause: stepTemplate set
GOCACHEandGOMODCACHEto paths inside/workspace/src(the workspace mount where the git checkout lives). Go's caches showed up as untracked directories; GoReleaser inspectsgit statusbefore publishing and bails on any unclean state.Fix: move both env vars to
/tmp/gocacheand/tmp/gomodcache— outside the workspace, outside any git context.Tracks bead
forgejo-mcp-trb. Proper image-based fix still inforgejo-mcp-1b4(P0).Why /tmp is fine here
Tekton Step containers do not share
/tmp, so cache reuse across Steps is lost. But the release Task collapses install + run into a single Step (per PR #153), so there are no later Steps that need the cache.The
go-ciTask at.tekton/tasks/go-ci.yamluses the same workspace-cache pattern; safe there because nothing ingo-ciinspectsgit statusmid-job. Not touching it.Status of v2.24.1
Same as v2.24.0 — tag pushed, no Release object on Codeberg (goreleaser exited before publish). Phantom tag, harmless. Next cut → v2.24.2 from this
fix(ci)commit.Test plan
goreleaserStep passesgit statecheck; goes on to build + publish.checksums.txt.sigon Codeberg release page.op1st Pipelines as Code/code-scans-m6h9n is running.
Starting Pipelinerun code-scans-m6h9n in namespace op1st-pipelines
You can monitor the execution using the op1st Pipelines as Code PipelineRun viewer or through the command line by
using the tkn CLI with the following command:
tkn pr logs -n op1st-pipelines code-scans-m6h9n -fop1st Pipelines as Code/on-pull-request-nqjcv is running.
Starting Pipelinerun on-pull-request-nqjcv in namespace op1st-pipelines
You can monitor the execution using the op1st Pipelines as Code PipelineRun viewer or through the command line by
using the tkn CLI with the following command:
tkn pr logs -n op1st-pipelines on-pull-request-nqjcv -fop1st Pipelines as Code/code-scans-m6h9n
Task Statuses:
fetch-source
gitleaks-version
gitleaks
Failure snippet:
task gitleaks has the status "TaskRunCancelled":op1st Pipelines as Code/on-pull-request-nqjcv
Task Statuses:
fetch-source
build-and-test
Failure snippet:
task build-and-test has the status "TaskRunCancelled":