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

RUN protocol governance to start PSM, runStake, etc. #5165

Merged
merged 7 commits into from
Apr 22, 2022
Merged
2 changes: 1 addition & 1 deletion packages/agoric-cli/src/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export default async function deployMain(progname, rawArgs, powers, opts) {
paths: [...paths, path.dirname(moduleFile)],
});
} catch (e) {
return path.resolve(...paths, fileName);
return path.resolve(path.dirname(moduleFile), ...paths, fileName);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was path.dirname(moduleFile) added before ...paths ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nmv, this is correct and it's the paths for require.resolve above that isn't correct.

}
};
console.warn('running', moduleFile);
Expand Down