Repository navigation
feat(onboard): install tedge-onboard as a go-c8y-cli extension - #26
Merged
Merged
Conversation
Put an extension.yaml in each tedge-onboard release archive, so "c8y extensions install thin-edge/tiny-edge" installs it as the "tinyedge" extension and it runs as "c8y tinyedge onboard". Further host commands can be added under the same extension. build.sh no longer adds macOS AppleDouble (._*) files to the tar archives on local macOS builds, as go-c8y-cli expects one top-level folder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Makes tedge-onboard installable as a go-c8y-cli binary extension straight from this repository:
tools/onboard/extension.yaml(new) declares the extension astinyedge, withtedge-onboardas its binary and one command,onboard.exec: []passes only the user's arguments, so the binary needs no changes. Further host commands can be added undercommands.build.shaddsextension.yamlto each release archive. go-c8y-cli picks the release asset for the platform from the latest release, and needs the manifest inside the archive.build.shsetsCOPYFILE_DISABLE=1fortar, so local macOS builds don't add AppleDouble (._*) files. go-c8y-cli expects one top-level folder in the archive. Archives built in CI were not affected.Testing
build.shand installed it through go-c8y-cli's binary-release install path (asthin-edge/tiny-edge, without--name). It installs asc8y-tinyedge.c8y tinyedge --helplistsonboard, andc8y tinyedge onboard --versionand--helpreach the binary.Notes
*_<os>_<arch>.tar.gz/.zip, as go-c8y-cli takes the first one that matches.🤖 Generated with Claude Code