-
Notifications
You must be signed in to change notification settings - Fork 243
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
odo dev
should exit if the build command fails
#6671
Comments
Thank you for raising this, Adam. We'll be sure to groom this soon. |
Grooming (2023-03-23) Related to #6173
|
I just noticed that |
/remove-kind feature Added user story around this, based on the team grooming discussion. |
The PR #6762 makes some refactoring on the Dev code, to simplify the legacy code, to prepare the changes:
|
/kind user-story
User Story
As an odo user, I want
odo
to log the build command output only once if it fails and indicate which command in the Devfile should be fixed, so that I can understand why my devfile/source code is not working and fix it without having to scroll through a lot of logs.See the "Original issue" section below for the original user request.
Acceptance Criteria
run
/debug
commands are handled, if thebuild
command fails,odo dev
should not retry until there is a manual sync triggered (by pressingp
) or until there are new changes in the local source code or the devfileodo dev --no watch
should also behave the same way, the only difference being that it should retry only if there is manual sync triggered (by pressingp
)Links
Original issue
/kind feature
Which functionality do you think we should add?
If the build command as defined in the devfile fails,
odo dev
should exit and indicate which command in the devfile should be be fixed/investigatedWhy is this needed?
When bootstrapping a project via
odo init
, it may be the case that the build command needs to be modified so that the application can be compiled.This is particularly true for go-based projects. The stacks currently available on https://github.com/devfile/registry/blob/main/stacks/go assume there is a
main.go
at the project root. This is not universally true - there is no firm consensus in the go community that this pattern should be adopted, and many teams/projects have their own idioms around "main" files. Example - putting command line invocations in thecmd
package is common.Stopping the sync loop and printing the last lines of the log (current behavior) followed by a helpful action statement would improve the developer flow.
The text was updated successfully, but these errors were encountered: