This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/spf13/cobra](https://github.com/spf13/cobra) | require | minor | `v1.8.1` -> `v1.9.1` | --- ### Release Notes <details> <summary>spf13/cobra (github.com/spf13/cobra)</summary> ### [`v1.9.1`](https://github.com/spf13/cobra/releases/tag/v1.9.1) [Compare Source](https://github.com/spf13/cobra/compare/v1.9.0...v1.9.1) ##### 🐛 Fixes - Fix CompletionFunc implementation by [@​ccoVeille](https://github.com/ccoVeille) in https://github.com/spf13/cobra/pull/2234 - Revert "Make detection for test-binary more universal ([#​2173](https://github.com/spf13/cobra/issues/2173))" by [@​marckhouzam](https://github.com/marckhouzam) in https://github.com/spf13/cobra/pull/2235 **Full Changelog**: https://github.com/spf13/cobra/compare/v1.9.0...v1.9.1 ### [`v1.9.0`](https://github.com/spf13/cobra/releases/tag/v1.9.0) [Compare Source](https://github.com/spf13/cobra/compare/v1.8.1...v1.9.0) #### ✨ Features - Allow linker to perform deadcode elimination for program using Cobra by [@​aarzilli](https://github.com/aarzilli) in https://github.com/spf13/cobra/pull/1956 - Add default completion command even if there are no other sub-commands by [@​marckhouzam](https://github.com/marckhouzam) in https://github.com/spf13/cobra/pull/1559 - Add CompletionWithDesc helper by [@​ccoVeille](https://github.com/ccoVeille) in https://github.com/spf13/cobra/pull/2231 #### 🐛 Fixes - Fix deprecation comment for Command.SetOutput by [@​thaJeztah](https://github.com/thaJeztah) in https://github.com/spf13/cobra/pull/2172 - Replace deprecated ioutil usage by [@​nirs](https://github.com/nirs) in https://github.com/spf13/cobra/pull/2181 - Fix --version help and output for plugins by [@​nirs](https://github.com/nirs) in https://github.com/spf13/cobra/pull/2180 - Allow to reset the templates to the default by [@​marckhouzam](https://github.com/marckhouzam) in https://github.com/spf13/cobra/pull/2229 #### 🤖 Completions - Make Powershell completion work in constrained mode by [@​lstemplinger](https://github.com/lstemplinger) in https://github.com/spf13/cobra/pull/2196 - Improve detection for flags that accept multiple values by [@​thaJeztah](https://github.com/thaJeztah) in https://github.com/spf13/cobra/pull/2210 - add CompletionFunc type to help with completions by [@​ccoVeille](https://github.com/ccoVeille) in https://github.com/spf13/cobra/pull/2220 - Add similar whitespace escape logic to bash v2 completions than in other completions by [@​kangasta](https://github.com/kangasta) in https://github.com/spf13/cobra/pull/1743 - Print ActiveHelp for bash along other completions by [@​marckhouzam](https://github.com/marckhouzam) in https://github.com/spf13/cobra/pull/2076 - fix(completions): Complete map flags multiple times by [@​gabe565](https://github.com/gabe565) in https://github.com/spf13/cobra/pull/2174 - fix(bash): nounset unbound file filter variable on empty extension by [@​scop](https://github.com/scop) in https://github.com/spf13/cobra/pull/2228 #### 🧪 Testing - Test also with go 1.23 by [@​nirs](https://github.com/nirs) in https://github.com/spf13/cobra/pull/2182 - Make detection for test-binary more universal by [@​thaJeztah](https://github.com/thaJeztah) in https://github.com/spf13/cobra/pull/2173 #### ✍🏼 Documentation - docs: update README.md by [@​eltociear](https://github.com/eltociear) in https://github.com/spf13/cobra/pull/2197 - Improve site formatting by [@​nirs](https://github.com/nirs) in https://github.com/spf13/cobra/pull/2183 - doc: add Conduit by [@​raulb](https://github.com/raulb) in https://github.com/spf13/cobra/pull/2230 - doc: azion project added to the list of CLIs that use cobra by [@​maxwelbm](https://github.com/maxwelbm) in https://github.com/spf13/cobra/pull/2198 - Fix broken links in active_help.md by [@​vuil](https://github.com/vuil) in https://github.com/spf13/cobra/pull/2202 - chore: fix function name in comment by [@​zhuhaicity](https://github.com/zhuhaicity) in https://github.com/spf13/cobra/pull/2216 #### 🔧 Dependency upgrades - build(deps): bump github.com/cpuguy83/go-md2man/v2 from 2.0.5 to 2.0.6 by [@​thaJeztah](https://github.com/thaJeztah) in https://github.com/spf13/cobra/pull/2206 - Update to latest go-md2man by [@​mikelolasagasti](https://github.com/mikelolasagasti) in https://github.com/spf13/cobra/pull/2201 - Upgrade `pflag` dependencies for v1.9.0 by [@​jpmcb](https://github.com/jpmcb) in https://github.com/spf13/cobra/pull/2233 *** Thank you to all of our amazing contributors and all the great work that's been going into the completions feature!! ##### 👋🏼 New Contributors - [@​gabe565](https://github.com/gabe565) made their first contribution in https://github.com/spf13/cobra/pull/2174 - [@​maxwelbm](https://github.com/maxwelbm) made their first contribution in https://github.com/spf13/cobra/pull/2198 - [@​lstemplinger](https://github.com/lstemplinger) made their first contribution in https://github.com/spf13/cobra/pull/2196 - [@​vuil](https://github.com/vuil) made their first contribution in https://github.com/spf13/cobra/pull/2202 - [@​mikelolasagasti](https://github.com/mikelolasagasti) made their first contribution in https://github.com/spf13/cobra/pull/2201 - [@​zhuhaicity](https://github.com/zhuhaicity) made their first contribution in https://github.com/spf13/cobra/pull/2216 - [@​ccoVeille](https://github.com/ccoVeille) made their first contribution in https://github.com/spf13/cobra/pull/2220 - [@​kangasta](https://github.com/kangasta) made their first contribution in https://github.com/spf13/cobra/pull/1743 - [@​aarzilli](https://github.com/aarzilli) made their first contribution in https://github.com/spf13/cobra/pull/1956 **Full Changelog**: https://github.com/spf13/cobra/compare/v1.8.1...v1.9.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC4wLjgiLCJ1cGRhdGVkSW5WZXIiOiI0MC4wLjgiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=--> Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/557 Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org> Co-authored-by: Renovate Bot <bot@kriese.eu> Co-committed-by: Renovate Bot <bot@kriese.eu> |
||
---|---|---|
.forgejo | ||
.github/workflows | ||
contrib | ||
examples | ||
internal | ||
scripts | ||
.dockerignore | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.golangci.yml | ||
build.go | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
LICENSE | ||
main.go | ||
Makefile | ||
README.md | ||
RELEASE-NOTES.md | ||
renovate.json |
Forgejo Runner
WARNING: this is alpha release quality code and should not be considered secure enough to deploy in production.
A daemon that connects to a Forgejo instance and runs jobs for continous integration. The installation and usage instructions are part of the Forgejo documentation.
Reporting bugs
When filing a bug in the issue tracker, it is very helpful to propose a pull request in the end-to-end tests repository that adds a reproducer. It will fail the CI and unambiguously demonstrate that the problem exists. In most cases it is enough to add a workflow (see the echo example). For more complicated cases it is also possible to add a runner config file as well as shell scripts to setup and teardown the test case (see the service example).
Hacking
The Forgejo runner depends on a fork of ACT and is a dependency of the setup-forgejo action. See the full dependency graph for a global view.
Local debug
The repositories are checked out in the same directory:
- runner: Forgejo runner
- act: ACT
- setup-forgejo: setup-forgejo
Install dependencies
The dependencies are installed manually or with:
setup-forgejo/forgejo-dependencies.sh
Build the Forgejo runner with the local ACT
The Forgejo runner is rebuilt with the ACT directory by changing the runner/go.mod
file to:
replace github.com/nektos/act => ../act
Running:
cd runner ; go mod tidy
Building:
cd runner ; rm -f forgejo-runner ; make forgejo-runner
Launch Forgejo and the runner
A Forgejo instance is launched with:
cd setup-forgejo
./forgejo.sh setup
firefox $(cat forgejo-url)
The user is root
with password admin1234
. The runner is registered with:
cd setup-forgejo
docker exec --user 1000 forgejo forgejo actions generate-runner-token > forgejo-runner-token
../runner/forgejo-runner register --no-interactive --instance "$(cat forgejo-url)" --name runner --token $(cat forgejo-runner-token) --labels docker:docker://node:20-bullseye,self-hosted:host://-self-hosted,lxc:lxc://debian:bullseye
And launched with:
cd setup-forgejo ; ../runner/forgejo-runner --config runner-config.yml daemon
Note that the runner-config.yml
is required in that particular case
to configure the network in bridge
mode, otherwise the runner will
create a network that cannot reach the forgejo instance.
Try a sample workflow
From the Forgejo web interface, create a repository and add the
following to .forgejo/workflows/try.yaml
. It will launch the job and
the result can be observed from the actions
tab.
on: [push]
jobs:
ls:
runs-on: docker
steps:
- uses: actions/checkout@v3
- run: |
ls ${{ github.workspace }}