-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat(agoric-cli): allow NPM-based agoric install
to work with dapps
#4236
Conversation
c3e2b3b
to
97eee8a
Compare
agoric install
to work with dapps
agoric install
to work with dappsagoric install
to work with dapps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great. I need to try this locally! Also wondering if I'd be able to run the loadgen with these changes without having the SDK installed locally, which would be neat.
I just have some small nits about child process exitCode
s and a duplication of yarn workspace
logic in the cli.
I think we'll need a follow-up to make the xsnap
package more node-like (either building from embedded source, or pulling a binary from GitHub). Or maybe we can punt on that until xsnap
moves under endo.
Also, is the goal to still require If we removed the |
That would be possible as one particular mode (like "run
The goal is to allow dapps to get by just with
Yes, the preinstall check was just temporary until we could sort this process out. |
Yeah, that's a bit of a can of worms, especially now that some package managers are moving away from implicit |
97eee8a
to
cc1e933
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feedback on process: it was hard for me to figure out what had changed since my first review because the updates were squashed into the initial commits. Making it harder, the PR was rebased on the latest master.
While I agree it's cleaner to fixup commits addressing feedback before merging, it'd be easier for reviewing if that was done after final approval so that reviews can be incremental. In that case rebasing wouldn't matter as much (aka I'd trust the rebase didn't introduce changes to the already reviewed commits).
cc1e933
to
0fe96d6
Compare
I think we need to have an engg process discussion to decide how to navigate through the different requirements for PR reviewers. Ideally, that would result in a flowchart for how to publish changes to PRs, so I don't have to think as much. :) |
0fe96d6
to
0b3e89a
Compare
3196247
to
24f1f05
Compare
5d50908
to
42fc52b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As soon as this is merged, I'll give it a try straight from NPM :)
closes: #3857 closes: #4169 closes: #4170
Description
With these changes, the
agoric
NPM package can function without the rest of the SDK installed.Many thanks to @mhofman for enumerating several of the problems that the prior version had, and suggesting Verdaccio for integration-testing the results.
agoric start --docker-tag=XXX
to turn on Docker mode instead of--no-sdk
, which is different.@agoric/xsnap
binaries before testing (withagoric start --rebuild
), as they are not distributed on NPMpackage.json
files to distribute necessary thingsagoric start
packages (@agoric/cosmic-swingset
,@agoric/solo
) are listed in./package.json
Security Considerations
Documentation Considerations
After we gain some confidence in this setup, we could recommend using
npx agoric
instead of having to install the full SDK just to test a dapp.Testing Considerations
Integration test added using Verdaccio.