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

Create a custom resource to install golang #82

Merged
merged 1 commit into from
Jul 22, 2020

Conversation

MarkGibbons
Copy link
Member

Description

Create a custom resource to install Golang. Two methods of installation are provided: download a binary version or download a binary version and compile. Compiling Golang requires an existing go binary.

Issues Resolved

List any existing issues this PR resolves

Check List

  • All tests pass. See TESTING.md for details.
  • New functionality includes testing.
  • New functionality has been documented in the README if applicable.

@MarkGibbons MarkGibbons requested a review from a team July 19, 2020 13:02
@jeffbyrnes
Copy link
Contributor

Thanks @MarkGibbons! Looks like the source installs came unstuck for some reason.

I’ll try to review this a bit more tomorrow.

Copy link
Contributor

@jeffbyrnes jeffbyrnes left a comment

Choose a reason for hiding this comment

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

@MarkGibbons great stuff! One request, in a line comment. If you’ve a specific reason for doing it this way though, I’m all ears 🙂

# ark input source
property :source_url, String, required: true
# ark input binaries and stuff download
property :url, String, required: true
Copy link
Contributor

Choose a reason for hiding this comment

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

@MarkGibbons one suggestion here: like the other properties, I think these should have default URLs, which mimic the attributes:

default['golang']['url'] = "https://dl.google.com/go/#{node['golang']['filename']}"

default['golang']['source_url'] = "https://dl.google.com/go/#{node['golang']['source_filename']}"

That will ease the next version, where we drop the attributes & recipes entirely.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, makes sense. I'll see what I can do.

@MarkGibbons MarkGibbons changed the title WIP - Create a custom resource to install golang Create a custom resource to install golang Jul 20, 2020
@MarkGibbons
Copy link
Member Author

Took off the WIP. I could squash the commits, just don't have time this week.

Markdown lint fixes
Remove the owner, group, mode attributes
Defaults are set in the resource, update the resource property settings as needed.
Set a partial default for the golang download locationss
Compute the package name to download for the binary and source golang packages
@MarkGibbons
Copy link
Member Author

I changed how the download image is computed and the locations are no longer required properties, they have defaults inside the resource.

Copy link
Contributor

@jeffbyrnes jeffbyrnes left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks for all the hard work on this big refactor, @MarkGibbons.

@jeffbyrnes jeffbyrnes added Release: Minor Release to Chef Supermarket as a minor release when merged Table Flip This is a large scale change with fundamental usability changes Tech Debt Will improve the maintainability of the codebase labels Jul 22, 2020
@jeffbyrnes jeffbyrnes merged commit 5b80044 into sous-chefs:master Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release: Minor Release to Chef Supermarket as a minor release when merged Table Flip This is a large scale change with fundamental usability changes Tech Debt Will improve the maintainability of the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants