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

feat(pg): Install Sphinx fork during sphinx install #1421

Merged
merged 1 commit into from
Feb 8, 2024

Conversation

RPate97
Copy link
Collaborator

@RPate97 RPate97 commented Feb 7, 2024

Purpose

  • Updates the sphinx install command to install the Sphinx Foundy fork binaries
  • Updates installation docs to no longer recommend installing the fork via foundryup
  • Updates ci guide to recommend running yarn sphinx install —confirm instead of using the foundry GitHub action integration

Todo

  • Test CI guide

Copy link
Contributor

mergify bot commented Feb 7, 2024

This PR changes implementation code, but doesn't include a changeset. Did you forget to add one?

@RPate97 RPate97 force-pushed the pate/sphinxup branch 2 times, most recently from 52e2f59 to c65ceab Compare February 7, 2024 05:51
@RPate97 RPate97 requested a review from sam-goldman February 7, 2024 19:04
@sam-goldman sam-goldman removed their request for review February 7, 2024 20:26
@RPate97 RPate97 force-pushed the pate/sphinxup branch 2 times, most recently from 5c49612 to d4dd0e6 Compare February 8, 2024 00:55
@RPate97 RPate97 requested a review from sam-goldman February 8, 2024 01:00
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)
Copy link
Collaborator

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.
Copy link
Collaborator

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

Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

Copy link
Collaborator

@sam-goldman sam-goldman left a 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

docs/cli-existing-project.md Show resolved Hide resolved
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.
Copy link
Collaborator

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.
Copy link
Collaborator

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):'
Copy link
Collaborator

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):'
Copy link
Collaborator

Choose a reason for hiding this comment

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

instllation -> installation

default: false,
})
.option(confirmOption, {
describe: 'Confirm the deployment without displaying a preview.',
Copy link
Collaborator

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

@@ -136,10 +136,25 @@ export const makeCLI = (
.command(
'install',
'Installs the required version of the Sphinx Solidity library contracts',
Copy link
Collaborator

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

@sam-goldman
Copy link
Collaborator

If we're keeping the troubleshooting section, we need to update it to use sphinx install instead of foundryup

@RPate97 RPate97 force-pushed the pate/sphinxup branch 4 times, most recently from 7ac23bf to 2795615 Compare February 8, 2024 02:27
@RPate97 RPate97 merged commit d17519a into sg/new-keyword Feb 8, 2024
5 of 8 checks passed
@RPate97 RPate97 deleted the pate/sphinxup branch February 8, 2024 02:55
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.

2 participants