Coder Social home page Coder Social logo

Publish packages with dependencies about spago HOT 8 CLOSED

CGenie avatar CGenie commented on September 18, 2024
Publish packages with dependencies

from spago.

Comments (8)

f-f avatar f-f commented on September 18, 2024

You can add the newly published library to the extraPackages just fine if you refer to the registry version instead of pointing to the url of the repo, e.g.

workspace:
  extraPackages:
    newly-published-library: 0.0.1

from spago.

CGenie avatar CGenie commented on September 18, 2024

OK this works, thanks!

Though this leaves the package YAML file in a somewhat intermediate definition where some of the packages are specified in dependencies and some in extraPackages. And there seems no way to fix that. Suppose the registry catches up with a new version. Then I can edit my library and move newly-published-library to dependencies but then I need to release a new version of that library. So I could have waited one day and made fewer releases anyways...

from spago.

f-f avatar f-f commented on September 18, 2024

I don't understand - you're supposed to have newly-published-library in your dependencies all along if your code depends on it, and the registry even forces you to include ranges for it.
The Registry entirely ignores the extraPackages key, and it only goes off the list of dependencies that your package has. In other words, your package being listed in extraPackages doesn't matter to the Registry for publishing.
Spago first, and the Registry later, should fail the publish if your package doesn't include all the packages it needs to compile the source.

What am I missing here?

from spago.

CGenie avatar CGenie commented on September 18, 2024

Ah, ok, I guess that's fine then, thanks for the explanation.

from spago.

f-f avatar f-f commented on September 18, 2024

You're welcome. I think we should be documenting this better - would you like to put together a small paragraph about this?

from spago.

CGenie avatar CGenie commented on September 18, 2024

Sure

from spago.

CGenie avatar CGenie commented on September 18, 2024

Can this be merged?

from spago.

f-f avatar f-f commented on September 18, 2024

Ah sorry, I meant to leave a review but I lost track of it

from spago.

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.