Skip to content

install.sh tidyups#3032

Merged
DrJosh9000 merged 1 commit intomainfrom
update-install-sh
Oct 11, 2024
Merged

install.sh tidyups#3032
DrJosh9000 merged 1 commit intomainfrom
update-install-sh

Conversation

@DrJosh9000
Copy link
Contributor

@DrJosh9000 DrJosh9000 commented Oct 9, 2024

Description

install.sh is in need of some love. I borrowed some ideas from https://getmic.ro

Context

https://coda.io/d/Escalations-Feedback_dHnUHNps1YO/Pipelines-In-Progress-Board_suIFKYEb#Escalations-Pipelines_tuQbCBf6/r732&view=modal

Changes

  • More quotes and handlebars
  • Refactor picking the HTTP client program (wget/curl)
  • Use mktemp -d, and a cleanup trap
  • Heredoc
  • Use the new-ish SHA256SUMS file to checksum the file, with an escape hatch

Testing

  • Tests have run locally (with go test ./...). Buildkite employees may check this if the pipeline has run automatically.
  • Code is formatted (with go fmt ./...)
  • Works on macOS
  • Works on Ubuntu

@DrJosh9000 DrJosh9000 force-pushed the update-install-sh branch 2 times, most recently from a80ca86 to 129dea0 Compare October 10, 2024 04:32
@DrJosh9000 DrJosh9000 marked this pull request as ready for review October 10, 2024 04:33
@DrJosh9000 DrJosh9000 force-pushed the update-install-sh branch 2 times, most recently from 10fe604 to 8a8380d Compare October 10, 2024 05:08
Copy link

@swaller-bk swaller-bk left a comment

Choose a reason for hiding this comment

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

Tested on darwin amd64, I was able to use the releases dir to trigger the checksum check, nice work!

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