Comments (8)
Same here, codeowners-validator version 0.7.4, running on Mac OS X Ventura 13.2, Apple M1 silicon.
I installed via Homebrew:
brew install mszostok/tap/codeowners-validator
But I get:
$ codeowners-validator
Killed: 9
Running it from Docker, the output is a bit more explicit as to the nature of the problem:
$ docker run --rm -v $(pwd):/repo -w /repo -e REPOSITORY_PATH="." -e GITHUB_ACCESS_TOKEN="$GH_TOKEN" -e EXPERIMENTAL_CHECKS="notowned" -e OWNER_CHECKER_REPOSITORY="org-name/rep-name" mszostok/codeowners-validator:v0.7.4
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
I'm able to use the tool by checking out the repo and building it, though.
$ git clone [email protected]:mszostok/codeowners-validator.git
$ make build
$ ./codeowners-validator
from codeowners-validator.
Hi @jebl01
Could you tell me how you installed the codeowners-validator? And which version?
CI produces the ARM64 binary for macOS (with Apple Silicon chips) but I have Intel for now so I was not able to test it.
The issue that you reported looks like the binary was wrongly compressed by upx
that I use on CI (I found a related issue upx/upx#446).
Here is a binary that I built from 0.7.4 tag for darwin/arm64 without running the upx
tool
codeowners-validator.zip
Let me know if that worked. If yes, I will exclude the upx
for arm
architectures.
You can also do the same on your local machine:
- Checkout this repository:
git clone [email protected]:mszostok/codeowners-validator.git
- Checkout to
v0.7.4
tag:git co v0.7.4
- Run
goreleaser
:goreleaser release --rm-dist --skip-publish --skip-validate --snapshot
NOTE: To run it successfully, install Go andgoreleaser
- Use the binary from
./bin/codeowners-validator_darwin_arm64/codeowners-validator
.
from codeowners-validator.
your zip didn't work (same error), but building locally did!
got this error at the end?!:
⨯ release failed after 24s error=post hook failed: failed to run 'upx -9 /Users/jesperblomquist/dev/codeowners-validator/bin/codeowners-validator_darwin_arm64/codeowners-validator': exec: "upx": executable file not found in $PATH
from codeowners-validator.
Hey, I was able to build the binary in a Mac M1 and the result is the same
➜ codeowners-validator git:(7f3f5e2) ./bin/codeowners-validator_darwin_arm64/codeowners-validator
[1] 87227 killed ./bin/codeowners-validator_darwin_arm64/codeowners-validator
from codeowners-validator.
I'm also experiencing this very same bug on Apple silicon chip. No hands on knowledge of go releaser but I feel the config could be updated to something similar to this one which provides a dedicated build entry for the Darwin/arm64
from codeowners-validator.
Yeah i'm getting the same issue on M2.
Also when running it with docker
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
from codeowners-validator.
Related Issues (20)
- Comments in CODEOWNERS
- notowned with an empty codeowners file HOT 1
- Validate GitHub token scopes when `owners` check is enabled
- Add native support for pre-commit hook HOT 6
- Valid Owner Checker should report if the owner doesn't have Write access HOT 1
- App authentication doesn't work with provided action HOT 10
- /folder/* wildcard pattern is assumed to be nested by the action "Not Owned" check, which it isnt HOT 1
- CODEOWNERS file existence check HOT 1
- Unnecessary failure of test of GitHub token
- Error and mismatched URLs when using github app credentials via github enterprise
- Add support for specifically excluding code owners on files and subfolders HOT 1
- Recommended App permissions don't appear to be sufficient
- codeowners-validator install.sh crit-platform error for linux/arm64
- Print a list of all files and their owners HOT 1
- Owner child team is not supported by codeowners-validator
- Executing File Exist Checker Not support glob
- Feature request: fail for deleted files that are explicitly owned in CODEOWNERS HOT 4
- Support Gitea codeowners
- Runtime Error: segmentation fault codeowners-validator HOT 2
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 codeowners-validator.