Comments (6)
Is it possible your script is missing the shebang line? This post suggests that could be the culprit.
from bkt.
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.
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.
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.
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.
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)
- BrokenPipe panic when stdout is closed early
- cli::discard_failures_in_background is flaky HOT 6
- Provide arm64 Darwin build HOT 5
- Record cache statistics
- Feature Request: return when value changes (differs from previous invocation) HOT 4
- [Feature suggestion] Flag to report bkt invocation values, and bkt context HOT 2
- cannot build rev 0.5.4 without updating cargo.lock HOT 5
- Flag to exit immediately on cache misses HOT 3
- Clean up cached data linked to old file modtimes HOT 1
- Feature request: stream the subprocess' stdout and stderr while it's running HOT 8
- Consider %LocalAppData% for Windows
- Default cache directory should be user-specific HOT 6
- Possible Race When Starting Many Parallel Bkt Instances HOT 1
- cache_tests::stable_hash test fails on s390x HOT 1
- Several tests occasionally flake due to missing cwd HOT 3
- bkt: stdout pipe failed: failed to write whole buffer HOT 4
- panicked at 'overflow when subtracting duration from instant' HOT 20
- Mechanism to report cache age to callers
- bkt should make scope "filename-safe" 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 bkt.