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

Add note about using spago alongside spago-legacy #1077

Merged
merged 6 commits into from
Oct 14, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ This section contains a collection of mini-recipes you might want to follow in o

### Migrate from `spago.dhall` to `spago.yaml`

You'll need to use [spago-legacy] for this:
You'll need to use [spago-legacy] for this.

```bash
# Install spago-legacy
Expand All @@ -191,8 +191,14 @@ spago migrate
# Ready to remove the dhall files and move to the new spago
npm install spago@next
rm spago.dhall packages.dhall

# Replace spago-legacy with this spago
# since the two use the same NPM package. See next paragraph.
npm install spago@next
JordanMartinez marked this conversation as resolved.
Show resolved Hide resolved
```

**Note**: both `spago-legacy` and `spago` use the same NPM package name `spago`. The difference is their version numbers. `spago-legacy` stops at `spago@0.21.0` whereas `spago` is `spago@0.93.X`. If `spago-legacy` is installed globally, `spago` can be installed locally via `npm i spago@next` and then used by prefixing `spago` commands with `npx` (e.g. `npx spago build`).

JordanMartinez marked this conversation as resolved.
Show resolved Hide resolved
Some packages might not be found or have the wrong version, in which case
you'll have to carefully:
- try to run `spago install some-package` for packages found in the package set (see [how to query the set](#querying-package-sets))
Expand Down
Loading