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

Fix relative paths, add CI test #37

Merged
merged 2 commits into from
Aug 25, 2023
Merged

Conversation

pranavgaikwad
Copy link
Contributor

@pranavgaikwad pranavgaikwad commented Aug 25, 2023

  • add CI test
  • create output dir if not exists
  • handle relative paths correctly to --input / --output
  • use temp dir in shim to avoid file exists error (happened when xmlrules already existed)

Signed-off-by: Pranav Gaikwad <[email protected]>
Signed-off-by: Pranav Gaikwad <[email protected]>
@@ -133,9 +134,16 @@ func (a *analyzeCommand) Validate() error {
}
stat, err := os.Stat(a.output)
if err != nil {
return fmt.Errorf("failed to stat output directory %s", a.output)
if errors.Is(err, os.ErrNotExist) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

+1

@eemcmullan eemcmullan merged commit c9aa8af into konveyor:main Aug 25, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants