Giter Site home page Giter Site logo

Comments (9)

Horgix avatar Horgix commented on July 19, 2024 1

Having the link to the CircleCI Discuss bug report mentioned in the last few comments would be cool since people that encounter this bug naturally end up here - at least it's my case, and I was unable to find any Discuss topic related to this (I probably missed it)

from cimg-go.

felicianotech avatar felicianotech commented on July 19, 2024

Thanks for reporting. Investigating now.

from cimg-go.

felicianotech avatar felicianotech commented on July 19, 2024

This fix will be rolled out within 20 minutes.

from cimg-go.

felicianotech avatar felicianotech commented on July 19, 2024

@asdwsda Hey. The fix is deployed. Can you confirm that this image is working for you again?

from cimg-go.

asdwsda avatar asdwsda commented on July 19, 2024

@felicianotech tl;dr yes, it is working again.

go mod download and related steps are working again, but it was a bit trickier than clicking on Rerun workflow. Restoring go modules from cache has started to fail, because it tries to extract files to /go/ and got a Permission denied again.

Failed to unarchive cache

Error untarring cache: Error extracting tarball /tmp/cache922072060 : tar: go: Cannot mkdir: Permission denied 

As far as I know there is no official method to drop cache without cache key modification. That's sad. Hopefully there is a bug (or feature?) I found earlier. Caches are immutable, except one case. For example you have a cache key like this: gomod-v3-{{ checksum "go.sum" }}. Changing this to gomod-v3-{{ checksum "go.sum" }}-something should create a new cache, but that's not true. Both keys will reference the same cache. So saving to gomod-v3-{{ checksum "go.sum" }}-something overwrites gomod-v3-{{ checksum "go.sum" }}. This way I was able to fix the cache without touching anything on our master branch.

from cimg-go.

felicianotech avatar felicianotech commented on July 19, 2024

Hmm. Can you please create a post in CircleCI Discuss for this in the "bug report" section? Also, if you can, provide as much of your config in that post as you can.

Based on specifically what you provided here, caching shouldn't work like that.

from cimg-go.

asdwsda avatar asdwsda commented on July 19, 2024

Yeah, sure. I have a minimal config to prove that.

from cimg-go.

jason-riddle avatar jason-riddle commented on July 19, 2024

Why does the cache key need to be updated? That part was never clarified.

from cimg-go.

felicianotech avatar felicianotech commented on July 19, 2024

@jason-riddle It's immutable. So if the cache contains binary data for another version of Go or the wrong architecture, it will stay that way.

from cimg-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.