Skip to content

Commit

Permalink
fix(agoric-cli): use new solo package
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Apr 25, 2021
1 parent cf91a04 commit 0780be8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/agoric-cli/lib/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ export default async function startMain(progname, rawArgs, powers, opts) {

let agSolo;
if (opts.sdk) {
agSolo = path.resolve(__dirname, '../../cosmic-swingset/bin/ag-solo');
agSolo = path.resolve(__dirname, '../../solo/src/entrypoint.cjs');
} else {
agSolo = `/usr/src/dapp/${process.cwd()}/node_modules/@agoric/cosmic-swingset/bin/ag-solo`;
agSolo = `/usr/src/dapp/node_modules/.bin/ag-solo`;
}

async function startFakeChain(profileName, _startArgs, popts) {
Expand All @@ -131,10 +131,8 @@ export default async function startMain(progname, rawArgs, powers, opts) {

if (!opts.sdk) {
if (
!(await exists('node_modules/@agoric/cosmic-swingset')) &&
!(await exists(
'_agstate/agoric-servers/node_modules/@agoric/cosmic-swingset',
))
!(await exists('node_modules/@agoric/solo')) &&
!(await exists('_agstate/agoric-servers/node_modules/@agoric/solo'))
) {
log.error(`you must first run '${progname} install'`);
return 1;
Expand Down

0 comments on commit 0780be8

Please sign in to comment.