-
Notifications
You must be signed in to change notification settings - Fork 208
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
yarn install
fails in dapp frontends because of @agoric/xsnap
#8288
Comments
@turadg does your recent work cleaning up the agoric-sdk dependency structure prompt any thoughts on this? |
I'm seeing the same issue myself now, trying to add |
There are two problems. One is that packages had dependencies declared on swingset-vat (and transitively xsnap) that weren't necessary. #8294 prunes as much could be done with just package.json changes. The other is that xsnap fails to build. It should always build, even when it's imported unnecessarily. I see that its Incidentally, reporting this in the changelog is something that commit-based changelogs are not well suited for. We have identified a bug that will be fixed in the next release, but there's no code change to make to log it. |
When can we do that @turadg? I need to get it building to deploy https://github.com/samsiegart/simple-game so that Keplr can be reviewed. Sounds like the way forward is deploy 0.14.2+, bump the version in |
There's always patch-package. :-/ |
A little cleaner than patch-package is using this resolution to get the latest xsnap (which builds):
ca530f8#diff-107c870fd7db7b3ad4045eae0b56a52d690254cd2a9d2e7ebb4e82d027ae4a9d adds a test ot make sure the build doesn't break again. That commit also fixed the breakage with ca530f8#diff-107c870fd7db7b3ad4045eae0b56a52d690254cd2a9d2e7ebb4e82d027ae4a9d , though it's not noted so won't be in the changelog. Another reason to adopt Changesets imo :-) |
I can see lots of ways to get the relevant info regarding these few exceptions into changelogs short of repeating everything for all normal fixes/enhancements in changesets. |
For those using
|
Describe the bug
I've observed in multiple dapps(dapp-inter included) that when I add a dependency that depends on
agoric/xsnap
to my dapp frontend'spackage.json
and then callyarn install
, the operation fails. Here's the dependencies from my dapp frontend;I tried to isolate packages and here's the list of packages that cause the error;
All these packages have dependencies that depends on
agoric/xsnap
.Here's the error message I get:
When I do
cd /Users/anil/WebstormProjects/agoric-samples/crabble-ui/node_modules/@agoric/ertp/node_modules/@agoric/xsnap && ls
here's the list of files/directories I see:As you can see there's no
build.env
. When I copy thebuild.env
from a local cloned version of the agoric-sdk and paste it to/Users/anil/WebstormProjects/agoric-samples/crabble-ui/node_modules/@agoric/ertp/node_modules/@agoric/xsnap
and then do;cd /Users/anil/WebstormProjects/agoric-samples/crabble-ui/node_modules/@agoric/ertp/node_modules/@agoric/xsnap yarn build:from-env
The
yarn build:from-env
succeeds.Are you aware of any issues like this? @samsiegart
cc @dckc
To Reproduce
Steps to reproduce the behavior:
yarn install
Expected behavior
yarn install
should not failPlatform Environment
The text was updated successfully, but these errors were encountered: