Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .prototools
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
actionlint = "1.7.12"
atlas = "1.2.3"
blender = "4.5.11"
buf = "1.71.0"
claude = "2.1.191"
Expand All @@ -24,6 +25,7 @@ yq = "4.53.3"

[plugins]
actionlint = "file://./actionlint/plugin.toml"
atlas = "file://./atlas/plugin.toml"
blender = "file://./blender/plugin.toml"
buf = "file://./buf/plugin.toml"
claude = "file://./claude/plugin.toml"
Expand Down
18 changes: 18 additions & 0 deletions atlas/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# atlas plugin

[Atlas](https://atlasgo.io) (database schema migration CLI) plugin for
[proto](https://github.com/moonrepo/proto).

Resolves versions from Atlas's [git tags](https://github.com/ariga/atlas) and downloads
the matching build from [atlasbinaries.com](https://atlasbinaries.com). This is the EULA
flavor; its CockroachDB driver and `docker://` dev database require `atlas login`.

## Installation

Atlas is not built into proto, so register this plugin, pin a version, then install:

```shell
proto plugin add atlas "https://raw.githubusercontent.com/Genesis-Embodied-AI/proto-plugins/main/atlas/plugin.toml"
proto pin atlas latest --resolve
proto install atlas
```
30 changes: 30 additions & 0 deletions atlas/plugin.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name = "atlas"
type = "cli"

[resolve]
git-url = "https://github.com/ariga/atlas"
version-pattern = "^v((?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+))$"

[install.arch]
aarch64 = "arm64"
x86_64 = "amd64"

# Atlas ships a single static binary per platform (not an archive), so there is
# nothing to unpack and no exe-path. The download host carries the EULA flavor,
# whose CockroachDB driver and docker:// dev database require `atlas login`.
[platform.linux]
download-file = "atlas-linux-{arch}-v{version}"
checksum-file = "atlas-linux-{arch}-v{version}.sha256"

[platform.macos]
download-file = "atlas-darwin-{arch}-v{version}"
checksum-file = "atlas-darwin-{arch}-v{version}.sha256"

[platform.windows]
download-file = "atlas-windows-{arch}-v{version}.exe"
checksum-file = "atlas-windows-{arch}-v{version}.exe.sha256"

[install]
download-url = "https://atlasbinaries.com/atlas/{download_file}"
checksum-url = "https://atlasbinaries.com/atlas/{checksum_file}"
unpack = false