Skip to content

chore: added package version string for sandbox#10687

Closed
FilipHarald wants to merge 1 commit into
AztecProtocol:masterfrom
FilipHarald:master
Closed

chore: added package version string for sandbox#10687
FilipHarald wants to merge 1 commit into
AztecProtocol:masterfrom
FilipHarald:master

Conversation

@FilipHarald

Copy link
Copy Markdown
Contributor

resolves #10686

I've only added the version to when running the Sandbox since I have not run the node in any other mode. But this would probably help when running a node as well.

@rahul-kothari

Copy link
Copy Markdown
Contributor

@FilipHarald your issue stated you wanted it for node but this only does for sandbox (`aztec start --sandbox) and not if you create a node independently. Is that your intention?

const sandboxOptions = extractNamespacedOptions(options, 'sandbox');
userLog(`${splash}\n${github}\n\n`);
const packageVersionString = `aztec-packages version: ${process.env.npm_package_version}`;
userLog(`${splash}\n${github}\n${packageVersionString}\n\n`);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@alexghr at some point we used to print the version but clearly we regressed. Do you know why? or is this ok?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think the version got lost in a refactor.

I'm not sure reading $npm_package_version is the right approach for this because it won't be set if running the script directly (not via npm/yarn).

@FilipHarald

Copy link
Copy Markdown
Contributor Author

@FilipHarald your issue stated you wanted it for node but this only does for sandbox (`aztec start --sandbox) and not if you create a node independently. Is that your intention?

Ah, yes, I specifically need it for the sandbox. And I did not fully understand the consequences of adding it to the node as well. But I would imagine this being good for node-operators as well.

@rahul-kothari

Copy link
Copy Markdown
Contributor

closing in favour of #10935 10935

rahul-kothari added a commit that referenced this pull request Dec 24, 2024
Fixes underlying issue presented in #10687 

Seems to have been removed during a refactor

Note this is untested!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

suggestion: add version for aztec-packages when starting the sandbox

3 participants