Coder Social home page Coder Social logo

Comments (7)

evamaxfield avatar evamaxfield commented on May 14, 2024 1

Yep, I realized the issue a little while ago. Definitely a mistake on my part not following build manifest spec.

from quilt.

evamaxfield avatar evamaxfield commented on May 14, 2024

Resolved:

Individual files cannot be named file.{extenstion}.
In my case, file.tif was not a valid path for contents of package.

from quilt.

dimaryaz avatar dimaryaz commented on May 14, 2024

Good catch! Actually, that is a real bug - you should be free to use the name file. We'll fix it.

from quilt.

evamaxfield avatar evamaxfield commented on May 14, 2024

@dimaryaz Renamed issue for better tracking. Good luck!

from quilt.

eode avatar eode commented on May 14, 2024

Actually, this isn't a bug. Perhaps the design needs changing, but it's by design.

It's not a file named 'file.xyz' that is the problem, it's having a node named 'file'. Also, the error occurs during build, not push. That error is really a beast, though, and it's very obscure to users what is actually happening. At the very least, we should change the error message, and perhaps we should change the quilt build file format.

So, for example:

# this package fails with the reported (obscure and unhelpful) error
contents:
  file:
    file:  baz.tif
# this package succeeds
contents:
  file_:        # note the underscore
    file: file.tif

This is because file is a quilt keyword used to specify that the containing node references a file. So, you can reference a file named file, or named file.file, but you can't have a node named file.

I'm going to have a conversation with some others about this, and do some checks in the code to ensure that the issue doesn't cause problems elsewhere. As long as that comes up clean, we could potentially be able to determine that it's being used as a keyword or not by the data it contains.

from quilt.

eode avatar eode commented on May 14, 2024

True, but we've decided to allow this behaviour, so in the future you should be able to have packages which use keywords as node names, at least to some extent (including the case you have here).

from quilt.

akarve avatar akarve commented on May 14, 2024

Partially tackled in #414 and will improve with planned syntax checking for build.yml files

from quilt.

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.