Git Product home page Git Product logo

Comments (4)

rylev avatar rylev commented on June 12, 2024

The issue stems most likely from a change to how cargo resolves git based dependencies. Cargo searches all of a git repository for Cargo.toml files and then resolves those projects even if they are not a part of a workspace. The template files get picked up as legitimate Cargo.toml manifests even though they're not.

I don't believe there's anyway to tell Cargo to ignore these files, so we might need to change how templating works to work around this Cargo issue.

from spin.

lann avatar lann commented on June 12, 2024

Maybe spin templates could be taught to strip a .tmpl suffix from input files?

from spin.

itowlson avatar itowlson commented on June 12, 2024

I found an allusion in https://blog.rust-lang.org/inside-rust/2024/03/26/this-development-cycle-in-cargo-1.78.html to package.include disabling git walking. Would that solve this, or would the downsides be unacceptable?

(I mean I'm okay with the .tmpl thing, just wondering.)

from spin.

rylev avatar rylev commented on June 12, 2024

I tried adding the templates to project.exclude, and it didn't work. This isn't surprising, as the package value is used for publishing crates, and I don't believe it's looked at when fetching a crate as a dependency.

from spin.

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.