From fec3c120f44d7a13feaa43d996d74b3f449e8fd4 Mon Sep 17 00:00:00 2001 From: nandithebull Date: Tue, 1 Dec 2026 05:54:51 -0800 Subject: [PATCH] Move hello to the example channel The smoke test installs means instead, the smallest package left in main. Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/rolling-release.yml | 4 ++-- README.md | 11 ++++++----- examples/greet/README.md | 3 +-- examples/greet/files/share/doc/greet/README.md | 3 +-- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/rolling-release.yml b/.gitea/workflows/rolling-release.yml index d8d7f34..daac281 100644 --- a/.gitea/workflows/rolling-release.yml +++ b/.gitea/workflows/rolling-release.yml @@ -78,8 +78,8 @@ jobs: - name: Smoke test run: | export ORBIT_ROOT="$RUNNER_TEMP/orbit-smoke" - dist/orbit-linux-x86_64 install hello - "$ORBIT_ROOT/bin/hello" + dist/orbit-linux-x86_64 install means + "$ORBIT_ROOT/bin/means" version - uses: actions/upload-artifact@v3 with: diff --git a/README.md b/README.md index 88ed30e..dcaad57 100644 --- a/README.md +++ b/README.md @@ -102,8 +102,9 @@ The manifest has `artifactType` `application/vnd.latha.orbit.index.v1` and one J orbit login git.site.latha.org # once, with a Gitea token (needed to publish) eval "$(orbit env)" -orbit publish examples/hello -orbit install hello +orbit channel add example git.site.latha.org/nandi/example # once +orbit publish examples/hello --channel example +orbit install example::hello hello # -> hello from orbit orbit upgrade orbit rollback hello @@ -116,7 +117,7 @@ Inside a directory with `orbit.toml` (or pass `--manifest-path `), command ```sh orbit new myapp && cd myapp -orbit add hello example::greet +orbit add example::hello example::greet orbit run greet orbit lock --update orbit install --locked @@ -137,14 +138,14 @@ name = "example" url = "git.site.latha.org/nandi/example" [dependencies] -hello = "^1.0.0" +hello = { version = "^1.0.0", channel = "example" } greet = { version = ">=1.0.0, <2.0.0", channel = "example" } [tasks] hi = "greet" ``` -See [examples/project](examples/project/README.md) for a working example project using `hello` and `example::greet`. +See [examples/project](examples/project/README.md) for a working example project using `example::hello` and `example::greet`. Credentials are stored in `~/.orbit/auth.json` (`$ORBIT_ROOT/auth.json`, mode `0600`). Orbit also falls back to `~/.docker/config.json` (`$DOCKER_CONFIG/config.json`) including `credHelpers` and `credsStore`. Use `orbit logout ` to remove stored credentials from Orbit. diff --git a/examples/greet/README.md b/examples/greet/README.md index 1c8b65c..e624291 100644 --- a/examples/greet/README.md +++ b/examples/greet/README.md @@ -1,8 +1,7 @@ # greet `greet` is an example Orbit package from the `example` channel. It installs a -small greeting command and depends on `hello` from the built-in `main` -channel. +small greeting command and depends on `hello` from the same channel. - [Installation and usage](files/share/doc/greet/README.md) - [Package on Gitea](https://git.site.latha.org/nandi/-/packages/container/example%2Fgreet/latest) diff --git a/examples/greet/files/share/doc/greet/README.md b/examples/greet/files/share/doc/greet/README.md index 2ad4688..90c68f5 100644 --- a/examples/greet/files/share/doc/greet/README.md +++ b/examples/greet/files/share/doc/greet/README.md @@ -1,8 +1,7 @@ # greet `greet` is a small Orbit package that demonstrates installing from a custom -channel. It depends on the `hello` package from Orbit's built-in `main` -channel. +channel. It depends on the `hello` package from the same channel. ```sh # Add the example channel once.