Git Product home page Git Product logo

Comments (7)

phillbaker avatar phillbaker commented on August 11, 2024 1

Hello, I'll need a bit more context to help debug.

The steps to build this project are documented in the readme. (The travis build script is also a good resource.)

Can you list all the commands you used to generate that error?

from terraform-provider-elasticsearch.

phillbaker avatar phillbaker commented on August 11, 2024

Hey @chicagobuss took me a second, but I think you found a bug in the README 😀, instead of being Golang 1.7 it should be >= 1.7. Locally I'm on go 1.9 (although, yes a mac).

If you trying building in a container with 1.9 and glide does that work for you?

I'd definitely be open to migrating this package to go dep as well (and adding some CI) - this was thrown together in a bit of a rush, so totally can use some love!

from terraform-provider-elasticsearch.

chicagobuss avatar chicagobuss commented on August 11, 2024

Ha, I went through a lot of effort just to get on 1.7 because I assumed it was required. Will try again soon, thanks.

from terraform-provider-elasticsearch.

phillbaker avatar phillbaker commented on August 11, 2024

So in a bit of irony, I did try to convert to dep (https://github.com/phillbaker/terraform-provider-elasticsearch/tree/dep-not-glide), but I am seeing the same error you posted above when using dep. On https://travis-ci.org/phillbaker/terraform-provider-elasticsearch/jobs/314409199.

Using glide on travis on master seems to build fine 😕 . Other posts about this seem to indicate that it's a a dependency issue.

from terraform-provider-elasticsearch.

phillbaker avatar phillbaker commented on August 11, 2024

Ah, so it looks like dep strips the vendor directories of dependencies which is an issue for at least terraform, aws-sdk-go, see golang/dep#1075 (comment).

However, dep did merge support for govendor (which terraform uses) a couple of weeks ago, although it hasn't been included in a release yet, which I think solve the issue of recursive dependencies?

Until it's clear how dep support dependencies like terraform, seems better to stick with glide.

from terraform-provider-elasticsearch.

IslamAzab avatar IslamAzab commented on August 11, 2024

I am trying to build on mac but I am getting the following:

unexpected directory layout:
    import path: github.com/hashicorp/terraform/plugin
    root: /Users/username/.gvm/pkgsets/go1.10.1/global/src
    dir: /Users/username/.gvm/pkgsets/go1.10.1/global/src/github.com/phillbaker/terraform-provider-elasticsearch/vendor/github.com/hashicorp/terraform/plugin
    expand root: /Users/username/.gvm/pkgsets/go1.10.1/global/src
    expand dir: /Users/username/.gvm/pkgsets/go1.10.1/global/src/github.com/phillbaker/terraform-provider-elasticsearch/vendor/github.com/hashicorp/terraform/plugin
    separator: /

from terraform-provider-elasticsearch.

IslamAzab avatar IslamAzab commented on August 11, 2024

@phillbaker Thanks for your reply, sorry for the late reply.

I tried with the master updates and it worked, I can not reproduce the issue.

from terraform-provider-elasticsearch.

Related Issues (20)

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.