Git Product home page Git Product logo

Comments (8)

flaviojs avatar flaviojs commented on September 16, 2024

The successful cases have a tar command line where this one fails.
The macos-13 runner has tar available with version:

bsdtar 3.5.3 - libarchive 3.5.3 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.8

from setup-rust.

milesj avatar milesj commented on September 16, 2024

If you run it in GHA with debug mode on, do the logs reveal anything?

from setup-rust.

flaviojs avatar flaviojs commented on September 16, 2024

Nope, I got the same information.
Probably this action and its dependencies do not log/trace the path(s) before the error is triggered.

from setup-rust.

flaviojs avatar flaviojs commented on September 16, 2024

I got a list of all the files in the runner and the two paths that can be cached do not exist.
Doing mkdir ~/.cargo/registry silences the error, so at least one cache path needs to exist to avoid the error.

I'm at the start of a conversion from C to rust.
The crate does not exist in the repo yet, so ~/.cargo/registry is only created when needed?
The crate will not be in the repo root, so (github_workspace)/target/debug will not exist.
A way to set the crate/workspace dir (or dirs) would be helpful for non-root use cases, but that is out of scope for this issue.

from setup-rust.

milesj avatar milesj commented on September 16, 2024

This should maybe do it: #19

I'm not 100% sure how GH handles loading cache with paths that were skipped.

from setup-rust.

milesj avatar milesj commented on September 16, 2024

Ok I tagged those changes, retry the pipeline and see if it works.

from setup-rust.

flaviojs avatar flaviojs commented on September 16, 2024

It works, thanks. 👍

from setup-rust.

milesj avatar milesj commented on September 16, 2024

Sweet, thanks for reporting.

from setup-rust.

Related Issues (10)

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.