Skip to content

chore: restore install.ps1 - #7050

Merged
jedevc merged 3 commits into
dagger:mainfrom
jedevc:restore-install-ps1
Apr 16, 2024
Merged

jedevc merged 3 commits into
dagger:mainfrom
jedevc:restore-install-ps1

Conversation

@jedevc

@jedevc jedevc commented Apr 8, 2024 •

Copy link
Copy Markdown
Contributor

Fix #6901.

This script was removed in 5a9c772, and we still have windows install instructions, so we should probably restore this!

I've also updated the script with a few additions, like making the function names map to the same as the unix script.

@jedevc
jedevc requested review from gerhard and matipan April 8, 2024 14:40
Comment thread .goreleaser.yml Outdated
Comment on lines 57 to 58

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

From what I can tell, there's currently no automation for this right now? This is what prevented install.ps1 from being updated in the docs in the first place.

If so, I think this is the right way to do it, we should have goreleaser release the install script.

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.

makes sense to me if it works and has thumbs up from @matipan or @gerhard 👍

@gerhard gerhard Apr 15, 2024 •

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.

We do this manually because we need to invalidate CloudFront too. FTR:

If we want to do this properly, we should add it as a function - follow-up to:

If we want to do this quick & dirty, we need to also invalidate CloudFront. Relevant past comments:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sounds good! Hadn't realized that, I've updated the RELEASING guide to include info about doing this.

Comment thread install.ps1 Outdated
Comment on lines 10 to 16

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure about keeping this, none of our other install scripts or tools have author names like this.

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 added a commit to convert this author block to a comment instead of it being output on every execution.

@jpadams
jpadams force-pushed the restore-install-ps1 branch from 67c6658 to 350d7b7 Compare April 11, 2024 04:39

@jpadams jpadams left a comment

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.

If others can confirm infra side, let's ship it!

Comment thread .goreleaser.yml Outdated
Comment on lines 57 to 58

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.

makes sense to me if it works and has thumbs up from @matipan or @gerhard 👍

Comment thread install.ps1 Outdated

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.

This script works fine for me. Now just need the dagger.exe that it downloads to give some output. That's the other PR :)

@jedevc jedevc added this to the v0.11.1 milestone Apr 15, 2024
Comment thread install.ps1 Outdated

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.

This looks good to me. I haven't tested, but the shape is correct. FTR:

image image

@jedevc
jedevc force-pushed the restore-install-ps1 branch from d321152 to 6745fd2 Compare April 15, 2024 16:42
@jedevc
jedevc requested a review from gerhard April 15, 2024 16:42
@jedevc
jedevc merged commit aeab44a into dagger:main Apr 16, 2024
@jedevc

jedevc commented Apr 16, 2024

Copy link
Copy Markdown
Contributor Author

Merging this since the script looks good - even if this ends up wrong, we can also update this on S3 async to our release process.

@jedevc
jedevc deleted the restore-install-ps1 branch April 16, 2024 10:31
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.

Windows installation instructions do not work

3 participants