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

actions: run: Check script exists during recipe verification #302

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion actions/run_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (run *RunAction) doRun(context debos.DebosContext) error {
}
cmdline = []string{run.scriptPath}
cmdline = append(cmdline, run.scriptArgs...)
label = path.Base(run.Script)
label = path.Base(run.scriptPath)
Copy link
Member

Choose a reason for hiding this comment

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

but then you don't see the arguments to the script anymore, which is a loss.. Probably this doesn't belong in this PR (it doesn't help with your stated target i think) but preventing "pollution" we could do either by:

  • unify truncating the length like the Command handling does
  • printing what gets run first and then either not or only providing a minimal label on each line after

} else {
cmdline = []string{run.Command}

Expand Down