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

Modernize packaging scripts #468

Merged
merged 1 commit into from
Oct 1, 2024
Merged

Modernize packaging scripts #468

merged 1 commit into from
Oct 1, 2024

Conversation

ctlong
Copy link
Member

@ctlong ctlong commented Mar 26, 2024

Description

  • Adds shebang directive for the default shell (used when the directive is missing).
  • Ignore shellcheck warnings related to missing compile.env source files.
  • Removes unnecessary GOPATH export.
  • Removes -mod=vendor flag from go build command, as that flag is on by default in recent versions of Go.

Type of change

  • Maintenance chore
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Testing performed?

  • Unit tests
  • Integration tests
  • Acceptance tests

Checklist:

  • This PR is being made against the main branch, or relevant version branch
  • I have made corresponding changes to the documentation
  • I have added testing for my changes

@ctlong ctlong requested a review from a team as a code owner March 26, 2024 21:02
@ctlong
Copy link
Member Author

ctlong commented Mar 26, 2024

⚠️ I have not tested this at all ⚠️

Edit: seems to work fine.

- Adds shebang directive for the default shell (used when the directive
  is missing).
- Uses `set -euxo pipefail` to enable important shell options.
- Ignore shellcheck warnings related to missing `compile.env` source
  files.
- Removes unnecessary GOPATH export.
- Removes `-mod=vendor` flag from `go build` command, as that flag is on
  by default in recent versions of Go.
@ctlong ctlong force-pushed the chore/update-packaging-scripts branch from a1c5bbe to 069816d Compare September 30, 2024 23:30
Copy link
Contributor

@chombium chombium left a comment

Choose a reason for hiding this comment

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

LGTM! Nice work @ctlong

@ctlong ctlong merged commit a8c642c into main Oct 1, 2024
8 checks passed
@ctlong ctlong deleted the chore/update-packaging-scripts branch October 1, 2024 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants