|
| 1 | +--- |
| 2 | +description: Officially maintained External Repo for Go Packages |
| 3 | +icon: golang |
| 4 | +--- |
| 5 | + |
| 6 | +# pkgforge-go |
| 7 | + |
| 8 | +{% hint style="info" %} |
| 9 | +* [x] Project: [https://github.com/pkgforge-go/builder](https://github.com/pkgforge-go/builder) |
| 10 | +* [x] Bugs/Issues: [https://github.com/pkgforge-go/builder/issues](https://github.com/pkgforge-go/builder/issues) |
| 11 | +* [x] Soar Repo: <mark style="color:orange;">**`pkgforge-go`**</mark> |
| 12 | +* [x] Cache: [<mark style="color:green;">**Yes**</mark>](#user-content-fn-1)[^1] |
| 13 | +* [x] Soar CI & Repo: [https://github.com/pkgforge-go/builder/tree/main/scripts](https://github.com/pkgforge-go/builder/tree/main/scripts) |
| 14 | +* [x] Metadata: [https://github.com/pkgforge-go/builder/tree/main/data](https://github.com/pkgforge-go/builder/tree/main/data) |
| 15 | +* [x] Type: Static |
| 16 | +{% endhint %} |
| 17 | + |
| 18 | +*** |
| 19 | + |
| 20 | +### Trust |
| 21 | + |
| 22 | +{% hint style="success" %} |
| 23 | +This is as good as our own officially curated packages, as it is officially maintained by [@Azathothas](https://docs.pkgforge.dev/orgs/readme/people#azathothas). We have [clear workflow](https://github.com/pkgforge-go/builder/tree/main#-workflow) on what & how packages are built. And since the packages are built on [Github Actions](https://github.com/pkgforge-go/builder/actions/workflows/matrix_builds.yaml), transparent CI logs are also available for all of the packages. |
| 24 | + |
| 25 | +All of these make us say with high confidence that **you can trust it, as long as you trust that Github, Cargo, Crates.io or the package itself isn't compromised.** |
| 26 | + |
| 27 | +On a scale of <mark style="color:orange;">**1-10**</mark>, we had rate this source as <mark style="color:green;">**9**</mark>, **As this is an officially maintained external source**. |
| 28 | +{% endhint %} |
| 29 | + |
| 30 | +*** |
| 31 | + |
| 32 | +### Add |
| 33 | + |
| 34 | +{% hint style="info" %} |
| 35 | +[Using <mark style="color:orange;">**`soar defconfig`**</mark>](#user-content-fn-2)[^2] (<mark style="color:green;">**Recommended**</mark>)  |
| 36 | + |
| 37 | +{% code overflow="wrap" %} |
| 38 | +```bash |
| 39 | +#ONLY If you didn't already use it or have your own custom config |
| 40 | +soar defconfig --external |
| 41 | +soar sync |
| 42 | +soar list 'pkgforge-go' |
| 43 | +``` |
| 44 | +{% endcode %} |
| 45 | +{% endhint %} |
| 46 | + |
| 47 | +{% hint style="info" %} |
| 48 | +[Using your text editor](#user-content-fn-3)[^3] \[ <mark style="color:orange;">**`~/.config/soar/config.toml`**</mark> ] |
| 49 | + |
| 50 | +* [x] Open it in a text editor |
| 51 | + |
| 52 | +{% code overflow="wrap" %} |
| 53 | +```bash |
| 54 | +#Open the config file using your favourtie editor |
| 55 | +#In this example, we will use micro |
| 56 | +mkdir -pv "~/.config/soar" &&\ |
| 57 | + micro "~/.config/soar/config.toml" |
| 58 | +``` |
| 59 | +{% endcode %} |
| 60 | + |
| 61 | +* [x] Add the repo config (For other hosts, see [supported list](https://github.com/pkgforge-go/builder#-hosts).) |
| 62 | + |
| 63 | +{% code overflow="wrap" %} |
| 64 | +```toml |
| 65 | +[[repositories]] |
| 66 | +name = "pkgforge-go" |
| 67 | +url = "https://meta.pkgforge.dev/external/pkgforge-go/x86_64-Linux.json.zstd" |
| 68 | +``` |
| 69 | +{% endcode %} |
| 70 | + |
| 71 | +* [x] Sync metadata |
| 72 | + |
| 73 | +{% code overflow="wrap" %} |
| 74 | +```bash |
| 75 | +soar sync |
| 76 | +soar list 'pkgforge-go' |
| 77 | +``` |
| 78 | +{% endcode %} |
| 79 | +{% endhint %} |
| 80 | + |
| 81 | +{% hint style="info" %} |
| 82 | +[Using tee (<mark style="color:red;">**NOT-Recommended**</mark>)](#user-content-fn-4)[^4] |
| 83 | + |
| 84 | +* [x] Append (For other hosts, see [supported list](https://github.com/pkgforge-cargo/builder#-hosts).) |
| 85 | + |
| 86 | +{% code overflow="wrap" %} |
| 87 | +```bash |
| 88 | +mkdir -pv "~/.config/soar" &&\ |
| 89 | +tee -a "~/.config/soar/config.toml" <<EOF |
| 90 | +[[repositories]] |
| 91 | +name = "pkgforge-go" |
| 92 | +url = "https://meta.pkgforge.dev/external/pkgforge-go/x86_64-Linux.json.zstd" |
| 93 | +EOF |
| 94 | +``` |
| 95 | +{% endcode %} |
| 96 | + |
| 97 | +* [x] Sync metadata |
| 98 | + |
| 99 | +```bash |
| 100 | +soar sync |
| 101 | +soar list 'pkgforge-go' |
| 102 | +``` |
| 103 | +{% endhint %} |
| 104 | + |
| 105 | +[^1]: Packages are stored on ghcr |
| 106 | + |
| 107 | +[^2]: Assuming you didn't run this before and you DO NOT have your own custom config at <mark style="color:orange;">**`~/.config/soar/config.toml`**</mark> |
| 108 | + |
| 109 | +[^3]: Should use if using custom config or the above command fails |
| 110 | + |
| 111 | +[^4]: Should only use if you can't use a text editor or want to do it non-interactively |
0 commit comments