Giter Site home page Giter Site logo

Comments (2)

displague avatar displague commented on June 9, 2024

I copied the provider-tf-aws .github folder into my project and needed some additional changes. crossplane-contrib/provider-tf-equinix-metal#1

I ran into problems with a deprecated resource in my TF provider and needed to Skip it. Before I skipped it, the make generate, reviewable, and check-diff commands resulted in differing changes.

Once published, I ran into another set of problems. The TERRAFORM_PROVIDER_VERSION and TERRAFORM_PROVIDER_SOURCE variables did not make it to the deployment.

I attempted to add these via a ControllerConfig after the install, but the environment variables were not picked up and I needed to add the argument equivalents.

from provider-jet-template.

displague avatar displague commented on June 9, 2024

If goimports is not preinstalled (typical in CI/CD), the build will fail:

$ make generate
21:33:26 [ .. ] verify dependencies have expected content
all modules verified
21:33:28 [ OK ] go modules dependencies verified
21:33:28 [ .. ] go generate darwin_amd64
Skipping resource metal_volume_attachment because it is in SkipList
Skipping resource metal_volume because it is in SkipList
panic: cannot run goimports for apis folder: bash: goimports: command not found
: exit status 127

goroutine 1 [running]:
github.com/crossplane-contrib/terrajet/pkg/pipeline.Run(0xc0001a4180, {0xc000b021c0, 0x2c})
        /Users/marques/src/provider-tf-equinix-metal/.work/pkg/pkg/mod/github.com/crossplane-contrib/[email protected]/pkg/pipeline/run.go:108 +0xa79
main.main()
        /Users/marques/src/provider-tf-equinix-metal/cmd/generator/main.go:41 +0x6d
exit status 2
apis/generate.go:32: running "go": exit status 1
generate: open /Users/marques/src/provider-tf-equinix-metal/apis/bgp/v1alpha1/zz_generated.deepcopy.go: no such file or directory
21:33:37 [FAIL]
make[1]: *** [go.generate] Error 1
make: *** [generate] Error 2

from provider-jet-template.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.