Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
added go backend
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 18, 2024
1 parent 5aa5cf2 commit 0e0d06d
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev-tools/backends/cargo.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The version will be set in `~/.config/mise/config.toml` with the following forma

```toml
[tools]
prettier = "latest"
"cargo:eza" = "latest"
```

## Configuration
Expand Down
30 changes: 30 additions & 0 deletions dev-tools/backends/go.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Go Backend <Badge type="warning" text="experimental" />

You may install packages directly via [go install](https://go.dev/doc/install) even if there
isn't an asdf plugin for it.

The code for this is inside of the mise repository at [`./src/forge/go.rs`](https://github.com/jdx/mise/blob/main/src/forge/go.rs).

## Dependencies

This relies on having `go` installed. Which you can install via mise:

```sh
mise use -g go
```

::: tip
Any method of installing `go` is fine if you want to install go some other way.
mise will use whatever `go` is on PATH.
:::

## Usage

The following installs the latest version of [hivemind](https://github.com/DarthSim/hivemind) and
sets it as the active version on PATH:

```sh
$ mise use -g go:github.com/DarthSim/hivemind
$ hivemind --help
Hivemind version 1.1.0
```
2 changes: 1 addition & 1 deletion dev-tools/backends/npm.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ The version will be set in `~/.config/mise/config.toml` with the following forma

```toml
[tools]
prettier = "latest"
"npm:prettier" = "latest"
```

0 comments on commit 0e0d06d

Please sign in to comment.