exec: es-start.bat: cannot run executable found relative to current directory

Open Beginner friendly
#18 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
go
Domain
cli

Research direction

The issue references a Go 1.19 change in os/exec that restricts relative path execution. Look at the caddy-exec module's code for the exec command handling, likely in a file like exec.go. Understand how the module currently resolves command paths. The fix may involve updating path resolution or documentation. Test by running a relative path command after changes to ensure it works or fails appropriately.

Written by the indexing model from the issue text.

Description

Isn't this a new restriction introduced in go 1.19?
https://tip.golang.org/doc/go1.19#os-exec-path
Looks like a bug like this one: https://github.com/syncthing/syncthing/issues/8499

I add to put a full path instead of a relative one. This should be documented?

do:

exec c:\test\es-start.bat {
    startup
}

instead of:

exec es-start.bat {
    startup
}
Dominant language
Go
Stars
155
Forks
21
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from abiosoft/caddy-exec

All issues in abiosoft/caddy-exec

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.