Git Product home page Git Product logo

Comments (11)

bryanl avatar bryanl commented on September 6, 2024 3

You should be able to do go get github.com/digitalocean/doctl/.... Currently, one of the vendored repos has a weird submodule thing I need to explore. The good news is that even with the error 1, you can still install a binary with go install github.com/digitalocean/doctl/cmd/doctl. I'll work on tracking down that submodule issue.

from doctl.

jungle-boogie avatar jungle-boogie commented on September 6, 2024

Yep, I experienced this and thought it was something in my setup.

I can't use the binaries as there's no version for freebsd 32/64bit.

from doctl.

jakebasile avatar jakebasile commented on September 6, 2024

Ran into this too. Looks like when #1 copied everything in, a few deps were missed. go get gets confused and complains.

I fixed it in jakebasile/doctl@aa6995516140ddbc143eb50473aaf3cd32332f1c by checking out the referenced commits and it appears to work when I try go get github.com/jakebasile/doctl, but it will not work with -u as it fails to get the correct paths from my project.

Not sure if I did the vendoring the preferred way, but it seems to work. Let me know if you'd like a PR, or maybe there's a better way to fix this.

from doctl.

macktic avatar macktic commented on September 6, 2024

This issue seems to still be open, I have to install from source as there is no arm version.
downloading the source and using go build doctl/cmd/doctl works fine.

from doctl.

nesv avatar nesv commented on September 6, 2024

Just to tack onto this issue, I'm getting the following error:

$ go get -v -u github.com/digitalocean/doctl/...
github.com/digitalocean/doctl (download)
# cd /home/nesv/src/github.com/digitalocean/doctl; git submodule update --init --recursive
fatal: no submodule mapping found in .gitmodules for path 'vendor/github.com/vektra/errors'
package github.com/digitalocean/doctl: exit status 128

@bryanl: Is this the "weird submodule thing" you referred to?

from doctl.

klauern avatar klauern commented on September 6, 2024

@nesv Yes, I got that too. It works when you follow the go install instructions that @bryanl mentioned above.

from doctl.

nesv avatar nesv commented on September 6, 2024

@klauern Yep! I was just adding the error I received in hopes that it would help. :)

from doctl.

claudioandre-br avatar claudioandre-br commented on September 6, 2024

There are special entries in the index indicating submodules. Inside doctl dir, do:

$ git ls-files --stage | grep 160000
160000 c64d83aba85aa4392895aadeefabbd24e89f3580 0   vendor/github.com/vektra/errors
160000 47a058062601e235731714f89d7ec95c1ec47a5e 0   vendor/github.com/vektra/mockery
160000 f3a63969dd29f8cfa913fdaea22f30c1ed537cb3 0   vendor/golang.org/x/tools

If that special entry path isn't referenced in the .gitmodule, then I guess DigitalOcean needs to remove it (one can add it again later).


After the removal, I was able to build using go get github.com/MyFork). And voila:

$ ls -l temp/bin/
total 15608
-rwxrwxr-x 1 me me 15979048 Ago 29 16:33 doctl

from doctl.

dch avatar dch commented on September 6, 2024

@claudioandre any chance of you sharing a few more steps on how you managed this? specifically how to remove this entry path, and what command you needed to generate the binary?

from doctl.

dch avatar dch commented on September 6, 2024

I worked out the incantation to do this, see #47 (comment) for details.

from doctl.

xmudrii avatar xmudrii commented on September 6, 2024

@mauricio i think this one should be fixed as well with #201

from doctl.

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.