-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat(pg): Install Sphinx fork during sphinx install #1421
Conversation
This PR changes implementation code, but doesn't include a changeset. Did you forget to add one? |
52e2f59
to
c65ceab
Compare
5c49612
to
d4dd0e6
Compare
docs/cli-existing-project.md
Outdated
6. [Add remapping](#6-add-remapping) | ||
7. [Update your deployment script](#7-update-your-deployment-script)\ | ||
2. [Install Sphinx CLI](#2-install-sphinx-cli) | ||
3. [Install Sphinx Foundry library](#3-install-sphinx-foundry-library) |
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.
#3 needs to be updated (the name and the link, which is dead)
foundryup --repo sphinx-labs/foundry --branch sphinx-patch-v0.1.0 | ||
``` | ||
|
||
> If you run into problems installing our Foundry fork, [try steps in the troubleshooting guide](https://github.com/sphinx-labs/sphinx/blob/main/docs/troubleshooting-guide.md#installing-sphinxs-foundry-fork). If you are still unable to resolve the issue, please reach out in the [Discord](https://discord.gg/7Gc3DK33Np). We're always happy to help. |
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.
If you run into problems installing our Foundry fork, try steps in the troubleshooting guide. If you are still unable to resolve the issue, please reach out in the Discord. We're always happy to help.
Should we keep this? Looks like it's removed in this PR
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.
If you don't think the troubleshooting guide is necessary anymore, can you delete it?
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.
I don’t think the troubleshooting guide is necessary. I’ll remove it. We can reintroduce it if we see people running into problems with the installation process.
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.
Looks great! Just some minor comments
Use the `sphinx install` command to install the Sphinx Foundry library. | ||
## 3. Install Sphinx Foundry Library and Fork | ||
|
||
Use the `sphinx install` command to install the Sphinx Foundry library and Foundry fork. |
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.
Love that this is in a single command
foundryup --repo sphinx-labs/foundry --branch sphinx-patch-v0.1.0 | ||
``` | ||
|
||
> If you run into problems installing our Foundry fork, [try steps in the troubleshooting guide](https://github.com/sphinx-labs/sphinx/blob/main/docs/troubleshooting-guide.md#installing-sphinxs-foundry-fork). If you are still unable to resolve the issue, please reach out in the [Discord](https://discord.gg/7Gc3DK33Np). We're always happy to help. |
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.
If you run into problems installing our Foundry fork, try steps in the troubleshooting guide. If you are still unable to resolve the issue, please reach out in the Discord. We're always happy to help.
Should we keep this? Looks like it's removed in this PR
) => { | ||
if (!confirm) { | ||
await userConfirmation( | ||
'Would you like to install the Sphinx Foundry fork? This is required to use Sphinx and will replace your existing foundry instllation.\nConfirm? (y\\n):' |
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.
foundry -> Foundry
) => { | ||
if (!confirm) { | ||
await userConfirmation( | ||
'Would you like to install the Sphinx Foundry fork? This is required to use Sphinx and will replace your existing foundry instllation.\nConfirm? (y\\n):' |
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.
instllation -> installation
packages/plugins/src/cli/setup.ts
Outdated
default: false, | ||
}) | ||
.option(confirmOption, { | ||
describe: 'Confirm the deployment without displaying a preview.', |
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 describe
sentence doesn't make sense in this context
packages/plugins/src/cli/setup.ts
Outdated
@@ -136,10 +136,25 @@ export const makeCLI = ( | |||
.command( | |||
'install', | |||
'Installs the required version of the Sphinx Solidity library contracts', |
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.
Could update this description to mention the Foundry fork
If we're keeping the troubleshooting section, we need to update it to use |
7ac23bf
to
2795615
Compare
2795615
to
076aeee
Compare
Purpose
sphinx install
command to install the Sphinx Foundy fork binariesfoundryup
yarn sphinx install —confirm
instead of using the foundry GitHub action integrationTodo