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

fix: binary installation, checksums, cleanup #181

Merged
merged 8 commits into from
Aug 20, 2024
Merged

fix: binary installation, checksums, cleanup #181

merged 8 commits into from
Aug 20, 2024

Conversation

plyr4
Copy link
Contributor

@plyr4 plyr4 commented Aug 19, 2024

⚠️ required changes for terraform v >= 1.8, see: hashicorp/terraform#35075

  • adds checksum validation to the Dockerfile's default terraform binary installation
  • removes PHONY references in make (redacted)
  • migrates from go-getter to hc-install based on recommendations from hashicorp over breaking changes made to the way terraform is zipped and released.

inspiration for code changes are from runatlantis/atlantis#4494

@plyr4 plyr4 requested a review from a team as a code owner August 19, 2024 16:11
@plyr4 plyr4 changed the title chore/standards fix: binary installation, checksums, cleanup Aug 19, 2024
Copy link

codecov bot commented Aug 19, 2024

Codecov Report

Attention: Patch coverage is 92.85714% with 1 line in your changes missing coverage. Please review.

Project coverage is 41.26%. Comparing base (64f00a5) to head (0998100).
Report is 1 commits behind head on main.

Files Patch % Lines
cmd/vela-terraform/main.go 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #181      +/-   ##
==========================================
+ Coverage   40.68%   41.26%   +0.57%     
==========================================
  Files          12       12              
  Lines         757      761       +4     
==========================================
+ Hits          308      314       +6     
+ Misses        437      434       -3     
- Partials       12       13       +1     
Files Coverage Δ
cmd/vela-terraform/terraform.go 85.71% <100.00%> (+8.29%) ⬆️
cmd/vela-terraform/main.go 1.25% <0.00%> (ø)

timhuynh94
timhuynh94 previously approved these changes Aug 19, 2024
Copy link
Member

@wass3rw3rk wass3rw3rk left a comment

Choose a reason for hiding this comment

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

why the PHONY removal? i understand the chance we have a file named any of the targets is low (in which case i believe it would do nothing), but it's used to indicate non-file targets and is consistent with other repos. it adds minimal noise and is technically correct?

one could open the can-o-worms of should we even use Makefiles to start with?

@plyr4
Copy link
Contributor Author

plyr4 commented Aug 19, 2024

why the PHONY removal? i understand the chance we have a file named any of the targets is low (in which case i believe it would do nothing), but it's used to indicate non-file targets and is consistent with other repos. it adds minimal noise and is technically correct?

one could open the can-o-worms of should we even use Makefiles to start with?

it was an item on our internal roadmap to consolidate and remove phony usage to bring these all to a consistent standard.
i dont know who recommended it initially.

dont shoot the messenger!

@plyr4
Copy link
Contributor Author

plyr4 commented Aug 19, 2024

i removed the removal of phony. to be honest i dont care if its there, i was just following blindly.
i'd rather not muddle this PR which is actually fixing something. thanks for the review, i appreciate it

wass3rw3rk
wass3rw3rk previously approved these changes Aug 19, 2024
Copy link
Member

@wass3rw3rk wass3rw3rk left a comment

Choose a reason for hiding this comment

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

love the checksum check addition. one suggestion. since it works as-is, i'll approve. happy to re-approve if you decide to take it up.

Dockerfile Outdated Show resolved Hide resolved
@plyr4 plyr4 merged commit c04baa1 into main Aug 20, 2024
8 of 11 checks passed
@plyr4 plyr4 deleted the chore/standards branch August 20, 2024 15:17
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.

3 participants