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

terraform-providers.sumologic: init at 0.2.1 #50047

Closed
wants to merge 4 commits into from

Conversation

stephengroat
Copy link
Contributor

@stephengroat stephengroat commented Nov 9, 2018

Motivation for this change

closes #45699

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

@srhb
Copy link
Contributor

srhb commented Nov 10, 2018

@GrahamcOfBorg build terraform-providers.sumologic

@GrahamcOfBorg
Copy link

Failure on aarch64-linux (full log)

Attempted: terraform-providers.sumologic

Partial log (click to expand)

        /nix/store/2jz7z8f6xnx1cv8vr6fmf21y96fg86ri-go-1.11/share/go/src/github.com/hashicorp/terraform/helper/schema (from $GOROOT)
        /build/go/src/github.com/hashicorp/terraform/helper/schema (from $GOPATH)
go/src/github.com/sumologic/sumologic-terraform-provider/sumologic/resource_sumologic_polling_source.go:8:2: cannot find package "github.com/hashicorp/terraform/helper/validation" in any of:
        /nix/store/2jz7z8f6xnx1cv8vr6fmf21y96fg86ri-go-1.11/share/go/src/github.com/hashicorp/terraform/helper/validation (from $GOROOT)
        /build/go/src/github.com/hashicorp/terraform/helper/validation (from $GOPATH)
go/src/github.com/sumologic/sumologic-terraform-provider/sumologic/provider.go:8:2: cannot find package "github.com/hashicorp/terraform/terraform" in any of:
        /nix/store/2jz7z8f6xnx1cv8vr6fmf21y96fg86ri-go-1.11/share/go/src/github.com/hashicorp/terraform/terraform (from $GOROOT)
        /build/go/src/github.com/hashicorp/terraform/terraform (from $GOPATH)
builder for '/nix/store/z3grdq5g8mr6fd8qx15fis68sxm7xm9w-sumologic-terraform-provider-0.1.0.drv' failed with exit code 2
error: build of '/nix/store/z3grdq5g8mr6fd8qx15fis68sxm7xm9w-sumologic-terraform-provider-0.1.0.drv' failed

@GrahamcOfBorg
Copy link

Failure on x86_64-linux (full log)

Attempted: terraform-providers.sumologic

Partial log (click to expand)

        /nix/store/g0qnlxjw2qs7rk0aamicy8z3x62pcrx8-go-1.11/share/go/src/github.com/hashicorp/terraform/helper/schema (from $GOROOT)
        /build/go/src/github.com/hashicorp/terraform/helper/schema (from $GOPATH)
go/src/github.com/sumologic/sumologic-terraform-provider/sumologic/resource_sumologic_polling_source.go:8:2: cannot find package "github.com/hashicorp/terraform/helper/validation" in any of:
        /nix/store/g0qnlxjw2qs7rk0aamicy8z3x62pcrx8-go-1.11/share/go/src/github.com/hashicorp/terraform/helper/validation (from $GOROOT)
        /build/go/src/github.com/hashicorp/terraform/helper/validation (from $GOPATH)
go/src/github.com/sumologic/sumologic-terraform-provider/sumologic/provider.go:8:2: cannot find package "github.com/hashicorp/terraform/terraform" in any of:
        /nix/store/g0qnlxjw2qs7rk0aamicy8z3x62pcrx8-go-1.11/share/go/src/github.com/hashicorp/terraform/terraform (from $GOROOT)
        /build/go/src/github.com/hashicorp/terraform/terraform (from $GOPATH)
builder for '/nix/store/0440x8p5w2z4qplw5bz6rnc7xizgjlyp-sumologic-terraform-provider-0.1.0.drv' failed with exit code 2
error: build of '/nix/store/0440x8p5w2z4qplw5bz6rnc7xizgjlyp-sumologic-terraform-provider-0.1.0.drv' failed

@GrahamcOfBorg
Copy link

Failure on x86_64-darwin (full log)

Attempted: terraform-providers.sumologic

Partial log (click to expand)

        /nix/store/cxf6wlj8pyid9b8plxi6y2l0fqaq8dn4-go-1.11/share/go/src/github.com/hashicorp/terraform/helper/schema (from $GOROOT)
        /private/tmp/nix-build-sumologic-terraform-provider-0.1.0.drv-0/go/src/github.com/hashicorp/terraform/helper/schema (from $GOPATH)
go/src/github.com/sumologic/sumologic-terraform-provider/sumologic/resource_sumologic_polling_source.go:8:2: cannot find package "github.com/hashicorp/terraform/helper/validation" in any of:
        /nix/store/cxf6wlj8pyid9b8plxi6y2l0fqaq8dn4-go-1.11/share/go/src/github.com/hashicorp/terraform/helper/validation (from $GOROOT)
        /private/tmp/nix-build-sumologic-terraform-provider-0.1.0.drv-0/go/src/github.com/hashicorp/terraform/helper/validation (from $GOPATH)
go/src/github.com/sumologic/sumologic-terraform-provider/sumologic/provider.go:8:2: cannot find package "github.com/hashicorp/terraform/terraform" in any of:
        /nix/store/cxf6wlj8pyid9b8plxi6y2l0fqaq8dn4-go-1.11/share/go/src/github.com/hashicorp/terraform/terraform (from $GOROOT)
        /private/tmp/nix-build-sumologic-terraform-provider-0.1.0.drv-0/go/src/github.com/hashicorp/terraform/terraform (from $GOPATH)
builder for '/nix/store/yl51ikis0vrraaszkqbs6mf5xrgshc7i-sumologic-terraform-provider-0.1.0.drv' failed with exit code 2
error: build of '/nix/store/yl51ikis0vrraaszkqbs6mf5xrgshc7i-sumologic-terraform-provider-0.1.0.drv' failed

Copy link
Contributor

@srhb srhb left a comment

Choose a reason for hiding this comment

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

Looks like there are some unresolved dependencies here. These need to be fixed first. :)

@stephengroat stephengroat changed the title terraform-providers.sumologic: init at 0.1.0 terraform-providers.sumologic: init at 0.2.1 Jan 15, 2019
@stephengroat
Copy link
Contributor Author

@srhb should be good to go now

@srhb
Copy link
Contributor

srhb commented Jan 16, 2019

@stephengroat Hmm, something seems fishy. If I create the following file in an empty directory:

provider "sumologic" {}

And try: nix-shell -p 'terraform.withPlugins (p: [p.sumologic])' --command "terraform init"

I get the following:

Initializing provider plugins...

Missing required providers.

The following provider constraints are not met by the currently-installed
provider plugins:

* sumologic (any version)

Any idea why? Testing the same thing with eg. the nixos provider works just fine.

@srhb
Copy link
Contributor

srhb commented Jan 16, 2019

Could it be that the binary doesn't follow the plugin convention naming scheme of terraform-<TYPE>-<NAME>?

@mmahut
Copy link
Member

mmahut commented Aug 18, 2019

Are there any updates on this pull request, please?

@stephengroat
Copy link
Contributor Author

no time to work on getting vendor uploaded to the base provider

@stephengroat stephengroat deleted the sumo-terraform branch August 20, 2019 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sumologic terraform provider
4 participants