Comments (8)
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.
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.
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.
Ah, ok, I guess that's fine then, thanks for the explanation.
from spago.
You're welcome. I think we should be documenting this better - would you like to put together a small paragraph about this?
from spago.
Sure
from spago.
Can this be merged?
from spago.
Ah sorry, I meant to leave a review but I lost track of it
from spago.
Related Issues (20)
- Spago fails to build on Windows and Node v 21.7 HOT 5
- Spago database falling out of sync with registry without explicit `spago fetch` HOT 12
- can't build chapter 3 of purescript book HOT 1
- Unknown system error -8 HOT 3
- Publish a new version? HOT 1
- Fail to install spago@next on macOS Sonoma 14.5 HOT 8
- gitignoringGlob exceeding call stack - add explicit package globs to workspace? HOT 9
- Doesn't work behind proxy HOT 2
- In monorepos, allow running commands from package directories HOT 7
- Stuck on "Gathering all the spago configs in the tree" HOT 2
- Stuck at `purs graph` HOT 11
- feature request: test filter HOT 2
- Use Flake to package Spago for NixPkgs HOT 1
- `statVerbosity` in `spago.yaml` not respected HOT 3
- Super slow lockfile parsing HOT 6
- Feature request: spago.local.yaml overrider HOT 3
- response from bot: This package has no PureScript files in its `src` directory. All package sources must be in the `src` directory, with any additional sources indicated by the `files` key in your manifest HOT 2
- Exporting doc information to use in models like SBERT
- Pedantic packages flag ignoring local packages HOT 3
- Monorepo setup issue with duplicate `Test.Main` module HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spago.