-
Notifications
You must be signed in to change notification settings - Fork 38
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
feat: add Darwin supporting back #106
Conversation
Signed-off-by: Jack Yu <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you. Test with goreleaser:
- Add a temporary tag.
git tag v0.6.6
- Remove
dist
folder.
rm -rf dist
- Build.
> goreleaser build
• loading environment variables
• getting and validating git state
• git state commit=ec81b3b84818d61fd663d8ee52bf934e7be5934a branch=PR-106 current_tag=v0.6.6 previous_tag=v0.6.5 dirty=false
• parsing tag
• setting defaults
• running before hooks
• running hook=go mod tidy
• ensuring distribution directory
• setting up metadata
• writing release metadata
• loading go mod information
• build prerequisites
• building binaries
• building binary=dist/terraform-provider-harvester_darwin_arm64/terraform-provider-harvester_v0.6.6
• building binary=dist/terraform-provider-harvester_darwin_amd64_v1/terraform-provider-harvester_v0.6.6
• building binary=dist/terraform-provider-harvester_linux_amd64_v1/terraform-provider-harvester_v0.6.6
• building binary=dist/terraform-provider-harvester_linux_arm64/terraform-provider-harvester_v0.6.6
• took: 54s
• writing artifacts metadata
• build succeeded after 54s
• thanks for using goreleaser!
Hi @m-ildefons, could you help to review this? Thank you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I have no Darwin system to test this change on, but it looks sane to me.
I've looked at why we even depend on importing longhorn in the first place and it looks to me like the only place where we utilize the Longhorn library is in the storage class resource schema. On top of that, the only thing from the Longhorn library we use is the constant LonghornDriverName
as the default value for the provider for the storage class resource. IMO, we should hard-code this as a local constant and remove the dependency on the Longhorn library completely. What do you think?
@m-ildefons I agree with it. If we all agree with this one, I could remove it in this PR until we really need it. Otherwise, too much unnecessary dependencies can be inconvenient and confusing. What do you think? @bk201 @FrankYang0529 |
Sound good it the constant is never expected to change. |
cc7e912
to
ec81b3b
Compare
@m-ildefons I just realized because Harvester v1.3.1 still uses LH as dependency, so removing LH dependency doesn't have too much effect. It still needs replacement. So, I'll just merge this PR. cc @bk201 @FrankYang0529 |
Related Issues
Description
Since go-common-libs did a breaking change:
From:
To:
So, we need to bump following dependencies:
Test Plan