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

Resolve the error - Doppler Error: exec: "x": cannot run executable found relative to current directory' #463

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

TeddiO
Copy link
Contributor

@TeddiO TeddiO commented Aug 29, 2024

Hi there,

Starting with Go 1.19 the Go team put in some guardrails surrounding exec.Command and exec.LookPath where including the current path was considered undesirable behaviour (https://pkg.go.dev/os/exec@master#hdr-Executables_in_the_current_directory) . This PR aims to restore pre 1.19 behaviour.

The reasoning behind this is there are scripts and systems that do exist (and are created even today) that rely on this behaviour. For something such as Doppler which is essentially injecting the secrets and calling a shell (that doesn't restrict this behaviour), these guardrails seem somewhat irrelevant.

This would resolve #415 .

@TeddiO TeddiO requested a review from a team as a code owner August 29, 2024 09:26
Copy link
Member

@nmanoogian nmanoogian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for tracking this down, @TeddiO!

@nmanoogian nmanoogian merged commit f959136 into DopplerHQ:master Sep 12, 2024
32 of 33 checks passed
@TeddiO TeddiO deleted the relative-exec-cur-dir-error branch September 12, 2024 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Cannot run executable found relative to current directory
2 participants