Coder Social home page Coder Social logo

Killed: 9 about codeowners-validator HOT 8 OPEN

jebl01 avatar jebl01 commented on June 3, 2024 6
Killed: 9

from codeowners-validator.

Comments (8)

jamesonwilliams avatar jamesonwilliams commented on June 3, 2024 3

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.

mszostok avatar mszostok commented on June 3, 2024

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:

  1. Checkout this repository: git clone [email protected]:mszostok/codeowners-validator.git
  2. Checkout to v0.7.4 tag: git co v0.7.4
  3. Run goreleaser: goreleaser release --rm-dist --skip-publish --skip-validate --snapshot
    NOTE: To run it successfully, install Go and goreleaser
  4. Use the binary from ./bin/codeowners-validator_darwin_arm64/codeowners-validator.

from codeowners-validator.

jebl01 avatar jebl01 commented on June 3, 2024

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.

Moser-ss avatar Moser-ss commented on June 3, 2024

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.

pdeschen avatar pdeschen commented on June 3, 2024

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.

duxbuse avatar duxbuse commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.