Comments (11)
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.
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.
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.
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.
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.
@nesv Yes, I got that too. It works when you follow the go install
instructions that @bryanl mentioned above.
from doctl.
@klauern Yep! I was just adding the error I received in hopes that it would help. :)
from doctl.
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.
@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.
I worked out the incantation to do this, see #47 (comment) for details.
from doctl.
@mauricio i think this one should be fixed as well with #201
from doctl.
Related Issues (20)
- webgui xterm code HOT 1
- Serverless triggers are not being deployed HOT 4
- Why do we have to SSH into a droplet, and then install the Droplet Agent? Why can't you just pre-install it? HOT 3
- Adding taints has wrong syntax in DO docs HOT 2
- Access the link to download CA certificate for managed databases HOT 1
- Incremental builds don't work with --remote-build
- doctl kubernetes cluster node-pool create mycluster123 --auto-scale --min-nodes 0 --name test --size s-1vcpu-2gb --max-nodes 1 --count 0 says the node pool needs at least min 1 HOT 2
- Error: websocket: bad handshake for doctl apps logs <app id> -f --tail 200 HOT 3
- doctl --user-data help syntax wrong HOT 1
- doctl registry login fails with "error storing credentials" HOT 1
- feature: functions: create function triggers with doctl
- functions: attributes generated by quick start are undocumented
- doctl apps logs doesn't output JSON
- Functions node flag --env not working? HOT 2
- `doctl auth list --output json` produces text output HOT 3
- Serverless: Can not install Serverless in Linux x64 HOT 3
- Add ability to change connection pool size for connection pools HOT 1
- `doctl serverless install` should not require authentication HOT 1
- Doctl registry repository list-tags failing with 404 HOT 4
- Can `dockerSocketPath` be configurable, issues when socket is in different location.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doctl.