Cache Miss of go.mod in Azure Pipeline

Padmini Anand 21 Reputation points
2023-06-12T07:48:32.1466667+00:00

I was deploying(manually started) my feature branch ‘B’ in azure pipeline and encountered with the following error in

Post-job: Set go mod cache

ApplicationInsightsTelemetrySender will correlate events with X-TFS-Session ID
Getting a pipeline cache artifact with one of the following fingerprints:
Fingerprint: `xxxxxx`
There is a cache miss.
tar: /home/vsts/work/1/s/gopath/pkg/mod: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
ApplicationInsightsTelemetrySender correlated 1 events with X-TFS-Session ID
##[error]Process returned non-zero exit code: 2
##[section]Finishing: Set go mod cache

There is a document mentioning the ‘cache miss’, however there is no workaround mentioned for this. Please let me know the solution for this issue.

Note: The feature branch ‘B’ has base branch as ‘A’ and the branch ‘A’ is not facing this issue. Also note that, the build is working with ‘Post-job: Set go mod cache’ but triggering the build manually leads to ‘Cache Miss’.

Kindly help on this.

I created the same issue in developer community too.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
43,510 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.