Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Cannot run executable found relative to current directory #415

Open
danmichaelo opened this issue Jul 4, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@danmichaelo
Copy link

Describe the bug

doppler run COMMAND fails if COMMAND is resolved from PATH and located relative to the current directory.

To Reproduce
Steps to reproduce the behavior (minimal example):

  1. Create a hello-world bash script in ./bin and add the folder to PATH:
$ mkdir bin
$ cat <<EOF > ./bin/hello-world
#!/usr/bin/env bash
echo "Hello world"
EOF

$ chmod +x ./bin/hello-world
$ export PATH=./bin:$PATH
  1. Verify that we can run it directly:
$ hello-world
Hello world
  1. Try running it through Doppler:
$ doppler run hello-world
Doppler Error: exec: "hello-world": cannot run executable found relative to current directory

Note that it does work to run doppler run ./bin/hello-world, not just doppler run hello-world.

Expected behavior

It should work to run commands from PATH relative to the current directory.

CLI Version:
Version v3.60.1

Additional context

Related bug with fix? syncthing/syncthing#8499

@danmichaelo danmichaelo added the bug Something isn't working label Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant