You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openserverless.apache.org by "wtfzambo (via GitHub)" <gi...@apache.org> on 2026/01/12 14:47:03 UTC
[PR] Embed tasks in the CLI for Apache release [openserverless-cli]
wtfzambo opened a new pull request, #26:
URL: https://github.com/apache/openserverless-cli/pull/26
# Summary of Changes
1. Build Process (cli/Taskfile.yml):
- Added a new task clone-embedded-tasks that clones the apache/openserverless-task repository into cli/embedded-tasks using the branch specified in branch.txt.
- Updated the build task to depend on clone-embedded-tasks and include the cloned files as sources for the Go build.
2. Embedding Logic (cli/embedded.go):
- Created a new file cli/embedded.go that uses Go's //go:embed directive to include the embedded-tasks folder in the binary.
- Implemented ExtractEmbeddedTasks() which extracts the embedded tasks to ~/.ops/.olaris if they don't already exist.
3. Runtime Logic (cli/main.go):
- Modified Main() to call ExtractEmbeddedTasks() if the tasks are not found in the usual locations.
- This ensures the CLI is self-contained and works offline on the first run.
4. Task Discovery (cli/prepare.go):
- Updated locateOpsRoot() to check ~/.ops/.olaris as a last resort before attempting to download tasks from GitHub.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@openserverless.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Embed tasks in the CLI for Apache release [openserverless-cli]
Posted by "sciabarracom (via GitHub)" <gi...@apache.org>.
sciabarracom commented on PR #26:
URL: https://github.com/apache/openserverless-cli/pull/26#issuecomment-4944498662
We have reverted to a different solution in the build
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@openserverless.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Embed tasks in the CLI for Apache release [openserverless-cli]
Posted by "sciabarracom (via GitHub)" <gi...@apache.org>.
sciabarracom closed pull request #26: Embed tasks in the CLI for Apache release
URL: https://github.com/apache/openserverless-cli/pull/26
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@openserverless.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org