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

Update list of OS and ARCH to target #73

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jpvlsmv
Copy link

@jpvlsmv jpvlsmv commented Feb 2, 2023

The current terraform-provider-scaffolding repository offers builds for Freebsd, Windows, Linux, and Darwin.

In my particular case, I'm running on Windows, and currently get an error message of

Provider registry.terraform.io/harvester/harvester v0.6.1 does not have a package available for your current platform, windows_amd64.

The current terraform-provider-scaffolding repository offers builds for Freebsd, Windows, Linux, and Darwin.
@futuretea futuretea self-requested a review March 7, 2023 16:08
@@ -16,11 +16,18 @@ builds:
ldflags:
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
goos:
- freebsd
- windows
Copy link
Contributor

Choose a reason for hiding this comment

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

5351aa7e85011caa163f670450d6a08
e312a1b9b1e7644a3cfebf9dc87c79d
It does not compile successfully on freebsd and windows

@futuretea futuretea marked this pull request as draft March 13, 2023 04:09
@Jihatech
Copy link

Hi, when can we use this provider on windows?
image

@jpvlsmv
Copy link
Author

jpvlsmv commented Oct 19, 2023

As long as github.com/c9s/goprocinfo is a dependency (it is Linux-only) this module can not run on any other platforms :(

It's not a direct dependency.
terraform-provider-harvester depends on github.com/harvester/harvester
github.com/harvester/harvester depends on kubevirt.io/kubevirt
kubevirt.io/kubevirt depends on c9s/goprocinfo in its pkg/monitoring/domainstats/downwardmetrics/hostmetrics.go

It "should" be possible to stub out the dependency (assuming that I don't need to monitor the host metrics when using the provider) but I'm not enough of a golang programmer to fully understand how it would be done.

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