GithubHelp home page GithubHelp logo

gasuketsu / asdf-golang Goto Github PK

View Code? Open in Web Editor NEW

This project forked from asdf-community/asdf-golang

0.0 2.0 0.0 54 KB

golang plugin for asdf version manager https://github.com/asdf-vm/asdf

License: MIT License

Shell 100.00%

asdf-golang's Introduction

asdf-golang

Build Status

golang plugin for asdf version manager

Requirements

MacOS

Linux (Debian)

Install

asdf plugin-add golang https://github.com/kennyp/asdf-golang.git

Use

Check the asdf readme for instructions on how to install & manage versions of go.

When using go get

After using go get to install a package you need to run asdf reshim golang to get any new shims.

Default go get packages

asdf-golang can automatically install a default set of packages with go get -u $PACKAGE right after installing a new Go version. To enable this feature, provide a $HOME/.default-golang-pkgs file that lists one package per line, for example:

// allows comments
github.com/Dreamacro/clash
github.com/jesseduffield/lazygit

You can specify a non-default location of this file by setting a ASDF_GOLANG_DEFAULT_PACKAGES_FILE variable.

Version selection

When using .tool-versions or .go-version, the exact version specified in the file will be selected.

When using go.mod, the highest compatible version that is currently installed will be selected. As per the Go modules reference, that is the highest minor version with a matching major version. For example, a go 1.14 directive in a go.mod file will result in the highest installed 1.minor.patch being selected, not necessarily 1.14.patch.

Contributing

Feel free to create an issue or pull request if you find a bug.

Issues

  • Assumes Linux, FreeBSD, or Mac
  • Assumes x86_64, i386, i686, armv6l, armv7l, arm64 and ppc64le

License

MIT License

asdf-golang's People

Contributors

alexrudd avatar aniaan avatar barnabasj avatar craigfurman avatar daenney avatar djmarcin avatar gasuketsu avatar hashnuke avatar jackmac92 avatar kennyp avatar loudou avatar meddey-sc avatar mikehale avatar missingcharacter avatar samgh96 avatar shepherdjerred avatar uzxmx avatar w1mvy avatar wlads avatar

Watchers

 avatar  avatar

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.