Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spago upgrade should use a compatible compiler version if no sets for the current one are available #1191

Open
peterbecich opened this issue Feb 26, 2024 · 4 comments

Comments

@peterbecich
Copy link
Contributor

The latest package set 50.1.1 https://github.com/purescript/registry/blob/main/package-sets/50.1.1.json
specifies PureScript 0.15.14.

Can that be updated to solve this error from spago upgrade?

❌ No package set found for the current compiler version.

Thanks

@f-f
Copy link
Member

f-f commented Feb 26, 2024

If you have purs@0.X.Y you can use any package set made for purs@0.X.Z, if Y >= Z.
So purs@0.15.15 can use any package set made for any purs 0.15.X.

FWIW, you can see which is the latest package set for each version:

spago registry package-sets --latest
+---------+------------+----------+
| VERSION | DATE       | COMPILER |
+---------+------------+----------+
| 10.0.0  | 2023-01-05 | 0.15.4   |
| 20.0.3  | 2023-04-08 | 0.15.7   |
| 27.2.0  | 2023-06-17 | 0.15.8   |
| 29.1.0  | 2023-07-18 | 0.15.9   |
| 43.3.0  | 2023-10-23 | 0.15.10  |
| 46.2.0  | 2023-11-23 | 0.15.12  |
| 47.10.0 | 2023-12-28 | 0.15.13  |
| 50.1.1  | 2024-02-23 | 0.15.14  |
+---------+------------+----------+

So the issue here is that spago upgrade should use any of these, as long as they are higher than your current version.

It should also allow you to specify a set to use with the --package-set flag, just like spago init does.

@f-f f-f added the bug label Feb 26, 2024
@f-f f-f changed the title request for package set for 0.15.15 compiler spago upgrade should use a compatible compiler version if no sets for the current one are available Feb 26, 2024
@thomashoneyman
Copy link
Member

This seems it should be transferred to spago’s repo, as no dev happens here

@peterbecich
Copy link
Contributor Author

peterbecich commented Mar 2, 2024

Would someone transfer this? I don't have the ability; "Transfer issue" should be at the right side: https://docs.github.com/en/issues/tracking-your-work-with-issues/transferring-an-issue-to-another-repository
Happy to create a new issue at https://github.com/purescript/spago of course

@f-f f-f transferred this issue from purescript/registry Mar 2, 2024
@f-f
Copy link
Member

f-f commented Mar 2, 2024

Oh sorry, I was entirely convinced it was in spago in the first place. I moved it now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants