Skip to content

Commit

Permalink
minor fixes to go
Browse files Browse the repository at this point in the history
  • Loading branch information
Pistonight committed Oct 24, 2024
1 parent 048342c commit 52ae534
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
7 changes: 3 additions & 4 deletions src/arch/essential-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,9 @@ Now, proceed to [Essential Tools](../tool/index.md) and install everything there
`yay` is an AUR helper that helps with installing stuff from AUR.
Since `yay` is itself an AUR package, we will need to install it from source.

First install `go` so we can build it
```bash
sudo pacman -S go
```
:::warning
Go is required to build `yay`. Please set it up first [here](../tool/go.md)
:::

Then clone the `yay` repo and build it
```bash
Expand Down
12 changes: 9 additions & 3 deletions src/tool/go.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,23 @@ Go is a compiled, garbage collected programming language excellent at async, con
Add-Content -Path ~/dotbin/extra/portable/link -Value "go/bin/go.exe`ngo/bin/gofmt.exe"
sudo dotbin-link
```
- Arch Linux
- Arch Linux: Install the `go` package and make the portable package directory
```bash
sudo pacman -Syu go
mkdir -p ~/dotbin/extra/portable/go
```
Then add the following to `~/.bashrc`
```bash
# Go
export GOPATH=$HOME/dotbin/extra/portable/go/gopath
:::warning
Restart Shell after linking the executable!
Restart Shell after making the changes to environment variables!
Then verify the installtion with
```powershell
go version
```
:::
:::
9 changes: 8 additions & 1 deletion src/tool/node.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,12 @@ npm -v
## Deno
Deno is used for publishing packages to JSR
```bash
cargo binstall deno
```
:::warning
Deno doesn't have official release on GitHub that can be downloaded by `cargo-binstall`,
so a third-party binary is used. If you want to install from source instead (slow to compile)
```bash
cargo install deno --locked
```
```
:::

0 comments on commit 52ae534

Please sign in to comment.