Comments (4)
For some strange reason, you are missing the python requirements file in your governance repo inside .github, like this one https://github.com/gov4git/roadmap-gov.public/tree/main/.github/python
This file is automatically installed by gov4git deploy
right here https://github.com/gov4git/gov4git/blob/v2/github/deploy.go#L132
Could you be using an old (non-release) commit? Try using v2.0.1?
from gov4git.
Thanks for your response! Some more information:
I followed the documentation here, but go get ...
didn't work for me, it had to be go install ...
. When I did go install github.com/gov4git/gov4git/gov4git@latest
, it installed v1.1.15. I guess this expected, because if you go to https://pkg.go.dev/github.com/gov4git/gov4git
, it says that v1.1.15 is the latest version available.
I tried downloading v2.0.1 from here, and using that version when I run gov4git version
it displays "dev", which I assume is just version numbering oversight.
Anyways, when I continue following the directions using that version, I get the error:
POST https://api.github.com/repos/EarthSciML/EarthSciMLCommunity.jl/labels: 404 Not Found []%
I used the same access token and same command line arguments that worked (well enough for that command to complete) using v1.1.15. The full stack trace is below. Thanks again for any help you can offer!
gov4git -v github deploy --token=[redacted] --project=EarthSciML/EarthSciMLCommunity.jl --release=v2.0.1
2024-01-24T18:49:50.119-0600 INFO base/logging.go:61 /home/runner/work/gov4git/gov4git/gov4git/cmd/root.go:69 gov4git version: dev-rev-d9d5ba5-2024-01-12, os: darwin, arch: arm64
2024-01-24T18:49:50.120-0600 INFO base/logging.go:61 /home/runner/work/gov4git/gov4git/github/deploy.go:45 creating GitHub repository {EarthSciML EarthSciMLCommunity.jl-gov.public}
2024-01-24T18:49:51.071-0600 INFO base/logging.go:61 /home/runner/work/gov4git/gov4git/github/deploy.go:50 creating GitHub repository {EarthSciML EarthSciMLCommunity.jl-gov.private}
2024-01-24T18:49:51.922-0600 INFO base/logging.go:61 /home/runner/work/gov4git/gov4git/github/deploy.go:70 initializing governance for {EarthSciML EarthSciMLCommunity.jl}
2024-01-24T18:49:53.574-0600 INFO base/logging.go:61 /home/runner/work/gov4git/gov4git/github/deploy.go:74 creating GitHub environment for governance in {EarthSciML EarthSciMLCommunity.jl-gov.public}
2024-01-24T18:49:54.183-0600 INFO base/logging.go:61 /home/runner/work/gov4git/gov4git/github/deploy.go:191 adding secret to environment: {
"key_id": "xxxx",
"encrypted_value": "xxx"
}
2024-01-24T18:49:55.664-0600 INFO base/logging.go:61 /home/runner/work/gov4git/gov4git/github/deploy.go:78 installing GitHub actions for governance in {EarthSciML EarthSciMLCommunity.jl-gov.public}, targetting {EarthSciML EarthSciMLCommunity.jl}
goroutine 1 [running]:
runtime/debug.Stack()
/opt/hostedtoolcache/go/1.21.5/x64/src/runtime/debug/stack.go:24 +0x64
github.com/gov4git/lib4git/must.mkErr(...)
/home/runner/go/pkg/mod/github.com/gov4git/[email protected]/must/must.go:16
github.com/gov4git/lib4git/must.Panic(...)
/home/runner/go/pkg/mod/github.com/gov4git/[email protected]/must/must.go:20
github.com/gov4git/lib4git/must.NoError(...)
/home/runner/go/pkg/mod/github.com/gov4git/[email protected]/must/must.go:43
github.com/gov4git/gov4git/v2/github.createGovernanceIssueLabels({0x102d66d10, 0x1400021cf00}, 0x1400021a580, {{0x16d96774f, 0xa}, {0x16d96775a, 0x16}})
/home/runner/work/gov4git/gov4git/github/deploy.go:151 +0x248
github.com/gov4git/gov4git/v2/github.Deploy({0x102d66d10, 0x1400021cf00}, {0x16d9676e7, 0x5d}, {{0x16d96774f, 0xa}, {0x16d96775a, 0x16}}, {{0x16d96774f?, 0x0?}, ...}, ...)
/home/runner/work/gov4git/gov4git/github/deploy.go:82 +0x550
github.com/gov4git/gov4git/v2/gov4git/cmd.glob..func31(0x140001ff700?, {0x102a71373?, 0x4?, 0x102a712a3?})
/home/runner/work/gov4git/gov4git/gov4git/cmd/github.go:67 +0x148
github.com/spf13/cobra.(*Command).execute(0x103263b00, {0x14000232940, 0x4, 0x4})
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:920 +0x654
github.com/spf13/cobra.(*Command).ExecuteC(0x103263820)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1044 +0x320
github.com/spf13/cobra.(*Command).Execute(...)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:968
github.com/gov4git/gov4git/v2/gov4git/cmd.Execute()
/home/runner/work/gov4git/gov4git/gov4git/cmd/root.go:107 +0x24
main.main.func1()
/home/runner/work/gov4git/gov4git/gov4git/main.go:15 +0x1c
github.com/gov4git/lib4git/must.TryWithStack(0x14000182000?)
/home/runner/go/pkg/mod/github.com/gov4git/[email protected]/must/must.go:64 +0x6c
main.main()
/home/runner/work/gov4git/gov4git/gov4git/main.go:14 +0x24
POST https://api.github.com/repos/EarthSciML/EarthSciMLCommunity.jl/labels: 404 Not Found []%
from gov4git.
I don't have a good insight on the go install
issue. Currently branch v2
is default on GitHub but maybe go install
does not recognize that. I would stick to using explicit version as in go install github.com/gov4git/gov4git/v2/[email protected]
gov4git version
will display dev
anytime you've built the binary yourself with go build
. Only binaries created by our CI and through the GitHub release flow will have a version number that is not dev
.
The error you are getting is when deploy
is trying to install new labels (gov4git:managed
, gov4git:directive
, etc) to your project repository. I am guessing that your PAT token doesn't have rights to add labels? Did you use a Finegrain token?
Also, FYI, the system is not able to deploy on repos inside GitHub personal accounts. It only works with repos inside GitHub org accounts, because Gov4Git uses the list of maintainers of the org account as people who can issue governance directives.
from gov4git.
Using go install
with /v2/
fixes this for me.
from gov4git.
Related Issues (20)
- put README.md in the governance and identity public/private repos with links to gov4git
- display accumulated bounties/rewards on issues/PRs in the github ui
- display accumulated bounties/rewards on issues/PRs in the desktop app HOT 1
- versioning protocol, client and app + design migration workflows
- automate end-to-end tests
- Expired CI PAT token
- Improve Error handling HOT 5
- when voting, add "user X is not a member of community Y" error HOT 2
- differentiate `community exists` from `repo exists` errors when deploying
- Site isn't working HOT 1
- Breaking Changes in 2.1.1 HOT 1
- Gov4Git community dashboard
- I'd like to join this project's community HOT 2
- Discord Link Broken HOT 1
- issue to BastinJafari HOT 1
- issue to petar HOT 1
- introduce status codes for error conditions HOT 1
- fund the matching pool HOT 1
- I'd like to join this project's community HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gov4git.