Giter VIP home page Giter VIP logo

Comments (6)

dimo414 avatar dimo414 commented on June 3, 2024 1

Is it possible your script is missing the shebang line? This post suggests that could be the culprit.

from bkt.

dimo414 avatar dimo414 commented on June 3, 2024

The line in question indicates the Command is malformed (namely, it lacks a 0th argument). Unfortunately that line is hit while handling a different error, which appears to be obfuscated by the Executable missing issue.

Are you able to share an MCVE I can use to reproduce this? My guess is there's something else going on since you can reproduce it even without tweaking the PATH.

from bkt.

alexmyczko avatar alexmyczko commented on June 3, 2024

take any script that just runs echo foo. make sure it is in same directory and not PATH. that would be the MCVE. here is an example:

https://github.com/alexmyczko/fnt/blob/main/fnt

download and chmod +x

from bkt.

dimo414 avatar dimo414 commented on June 3, 2024

I'm afraid that isn't sufficient to reproduce what you're seeing, there is something else going on with your environment but I don't know what it would be.

$ cd $(mktemp -d)

$ printf '%s\n' '#!/bin/bash' 'echo foo' > foo.sh

$ chmod +x foo.sh

$ ./foo.sh
foo

$ bkt -- ./foo.sh
foo

$ PATH=.:$PATH bkt -- foo.sh
foo

from bkt.

dimo414 avatar dimo414 commented on June 3, 2024

I just fixed the error handling to avoid the "Executable missing" error, can you try one of these binaries and see what it reports?

from bkt.

alexmyczko avatar alexmyczko commented on June 3, 2024

so trying to wget https://github.com/dimo414/bkt/suites/13991373200/artifacts/780517369 or use links2 or curl on it says Not Found. But Safari can download the binary, but the binary lands not on the host where I can test... sorry for my test to take so long...

bad luck:

me@sid$ ./bkt --ttl 24h -- ./FHQ
bkt: Subprocess execution failed: Failed to run command: "./FHQ": Exec format error (os error 8)
me@sid$ PATH=$PATH:. ./bkt --ttl 24h -- ./FHQ
bkt: Subprocess execution failed: Failed to run command: "./FHQ": Exec format error (os error 8)

from bkt.

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.