Git Product home page Git Product logo

Comments (4)

braydonk avatar braydonk commented on May 4, 2024 2

Thanks for making an issue!
go install actually installs the binary to the GOBIN environment variable, which is by default $HOME/go/bin. If you add $HOME/go/bin to your path this should work. I forgot that this wasn't done by default. I'll adjust the install instructions to mention that.

from yamlfmt.

jamesbraza avatar jamesbraza commented on May 4, 2024 2

Yeah fwiw I added this to my ~/.zshrc: export PATH=$PATH:$(go env GOPATH)/bin.

Thank you!

from yamlfmt.

braydonk avatar braydonk commented on May 4, 2024

Sorry I'd forgotten about this. In #73 I included a new line to suggest a DigitalOcean article that has a go install setup guide. Hopefully this should work!

from yamlfmt.

larmitage-bjss avatar larmitage-bjss commented on May 4, 2024

Hi, I'm not sure if the DigitalOcean page you've linked to has changed since you linked to it, but I find the install process at least as confusing as without it. The DO docs are also confusing though, I think you want to link here for people to find the article for their own OS, but the one for mac at least implies that installing go using brew will set up the path for you which didn't work for me.

I think it would be clearer to just say that the $GOPATH directory needs adding to your path if you've not used Go before, and how you do that will be dependent on your OS and shell (maybe add the ~/.zshrc example by @jamesbraza above which is also what I used: export PATH=$PATH:$(go env GOPATH)/bin)

Thanks!

from yamlfmt.

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.