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

Adding Scoop support #450

Merged
merged 5 commits into from
Jun 7, 2023
Merged

Conversation

CEbbinghaus
Copy link
Contributor

@CEbbinghaus CEbbinghaus commented May 22, 2022

This PR is to add scoop support to the CLI install.
With first a github hosted uri to install it manually:

> scoop install https://raw.githubusercontent.com/appwrite/sdk-for-cli/master/appwrite.json

and hopefully the ability for scoop to verify hashes as well as install it via the main bucket

> scoop install appwrite

which will require a working autoupdater and working version check

This PR implements Feature appwrite/sdk-for-cli/issues/39

@CEbbinghaus CEbbinghaus marked this pull request as draft May 22, 2022 09:31
Copy link
Contributor

@Meldiron Meldiron left a comment

Choose a reason for hiding this comment

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

Left a comment, PR looks good! 🥳 (didn't test)

src/SDK/Language/CLI.php Outdated Show resolved Hide resolved
templates/cli/appwrite.json.twig Outdated Show resolved Hide resolved
templates/cli/appwrite.json.twig Outdated Show resolved Hide resolved
templates/cli/appwrite.json.twig Outdated Show resolved Hide resolved
@CEbbinghaus
Copy link
Contributor Author

Install can be tested with this command:

$ scoop install https://gist.githubusercontent.com/CEbbinghaus/3219a010325e9684839f7ce5ecea4afd/raw/2f19d33dc4581658d5e73edda4d763644129621a/appwrite.json

Generated with the SDK

@CEbbinghaus CEbbinghaus marked this pull request as ready for review May 27, 2022 01:58
@gewenyu99 gewenyu99 requested a review from Meldiron June 1, 2022 21:31
@CEbbinghaus
Copy link
Contributor Author

The build task seems to be failing because of Docker rate limits not the changes I added

Copy link
Contributor

@Meldiron Meldiron left a comment

Choose a reason for hiding this comment

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

Looks good to me 😇

@Meldiron
Copy link
Contributor

The build task seems to be failing because of Docker rate limits not the changes I added

Restarted failed jobs. All green now 💚

@CEbbinghaus
Copy link
Contributor Author

Sweet. This PR is ready to merge then as it shouldn't contain any extra changes. It's going to be the prerequisite for the other changes so i am very keen to get it merged asap

@CEbbinghaus
Copy link
Contributor Author

Requesting another review as its still not merged and the merging is blocked. It might be smart to leave it until ScoopInstaller/Scoop#3146 is merged as it would allow for the ARM release to be installed too

@lohanidamodar
Copy link
Member

@Meldiron looks like the blocking issue was merged can you help move forward with this?

@CEbbinghaus
Copy link
Contributor Author

Thanks @lohanidamodar, since opening this PR I have learned a lot about scoop & how it works. There are some small modifications I want to do to it as it stands right now since it would require a PullRequest to the scroop repository for every version which is not desired. Instead if we can generate the Appwrite.json file a little differently, it should auto update within the scoop repository. That means that the changes will be lagging behind until scoop's main bucket does another update cycle but that is probably faster than waiting for a human review of every version.

Copy link
Contributor Author

@CEbbinghaus CEbbinghaus left a comment

Choose a reason for hiding this comment

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

Not quite ready to be merged. Will try and get these changes in today to bring it up to date. Also of note is that this will generate the json file every single version but only 1 will ever be committed to the main bucket scoop maintains as it self updates the json through the "checkver" property.

templates/cli/scoop/appwrite.json.twig Outdated Show resolved Hide resolved
templates/cli/scoop/appwrite.json.twig Outdated Show resolved Hide resolved
templates/cli/README.md.twig Outdated Show resolved Hide resolved
@lohanidamodar
Copy link
Member

@CEbbinghaus thank you for your immediate response. Please make the necessary changes and request another review.

@CEbbinghaus
Copy link
Contributor Author

@lohanidamodar who should I request the review from?

Copy link
Contributor

@stnguyen90 stnguyen90 left a comment

Choose a reason for hiding this comment

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

One suggestion.

templates/cli/scoop/appwrite.json.twig Outdated Show resolved Hide resolved
@CEbbinghaus
Copy link
Contributor Author

So this is ready to merge? The failed Travis build seems to be more of an amnesty rather than due to my changes. Is anything hold it up?

@stnguyen90 stnguyen90 self-requested a review March 1, 2023 16:16
Copy link
Contributor

@stnguyen90 stnguyen90 left a comment

Choose a reason for hiding this comment

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

So this is ready to merge? The failed Travis build seems to be more of an amnesty rather than due to my changes. Is anything hold it up?

@CEbbinghaus would you please update this branch with the latest from master? There may be something on master that will fix the CI.

@CEbbinghaus
Copy link
Contributor Author

CEbbinghaus commented Mar 2, 2023

Updated with the latest from master. Lets hope it fixes the CI task :3

Edit: Seems that is the case. Should be good to merge.

@lohanidamodar lohanidamodar merged commit 419002b into appwrite:master Jun 7, 2023
@CEbbinghaus CEbbinghaus deleted the feature/addingScoop branch June 8, 2023 12:10
@CEbbinghaus
Copy link
Contributor Author

How do we trigger a run for the CLI SDK so it updates the content & generates the files. Once that is complete I can create the PR to merge appwrite into the main scoop bucket which I can add back into the docs so you merely run scoop install appwrite

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.

None yet

5 participants