diff --git a/.prototools b/.prototools index 1715d8b..5ec7641 100644 --- a/.prototools +++ b/.prototools @@ -1,4 +1,5 @@ actionlint = "1.7.12" +atlas = "1.2.3" blender = "4.5.11" buf = "1.71.0" claude = "2.1.191" @@ -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" diff --git a/atlas/README.md b/atlas/README.md new file mode 100644 index 0000000..b0da3f5 --- /dev/null +++ b/atlas/README.md @@ -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 +``` diff --git a/atlas/plugin.toml b/atlas/plugin.toml new file mode 100644 index 0000000..c859047 --- /dev/null +++ b/atlas/plugin.toml @@ -0,0 +1,30 @@ +name = "atlas" +type = "cli" + +[resolve] +git-url = "https://github.com/ariga/atlas" +version-pattern = "^v((?\\d+)\\.(?\\d+)\\.(?\\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