-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Starterproject not replace existing devfile stack files of the c…
…ontext dir (#6633) * Starterproject does not replace existing files of the context dir Signed-off-by: Parthvi Vala <[email protected]> * Fix issue with os.RemoveAll Signed-off-by: Parthvi Vala <[email protected]> * Fix errors, it works now Signed-off-by: Parthvi Vala <[email protected]> * Fix test failures Signed-off-by: Parthvi Vala <[email protected]> * Use filesystem to perform file operations wherever possible Signed-off-by: Parthvi Vala <[email protected]> * Use filesystem to perform file operations wherever possible (2) Signed-off-by: Parthvi Vala <[email protected]> * Add unit test for DownloadStarterProject 1/n Signed-off-by: Parthvi Vala <[email protected]> * Fix zip files Signed-off-by: Parthvi Vala <[email protected]> * Fix zip files (2) Signed-off-by: Parthvi Vala <[email protected]> * Add unit test starter project with Devfile Signed-off-by: Parthvi Vala <[email protected]> * Fix zip files (3) Signed-off-by: Parthvi Vala <[email protected]> * Finish unit tests Signed-off-by: Parthvi Vala <[email protected]> * Remove unnecessary integration test Signed-off-by: Parthvi Vala <[email protected]> * Add comments and verbosity, cleanup code Signed-off-by: Parthvi Vala <[email protected]> * Update pkg/registry/registry.go Co-authored-by: Armel Soro <[email protected]> * Update pkg/util/util.go Co-authored-by: Armel Soro <[email protected]> * Update pkg/registry/registry.go Co-authored-by: Armel Soro <[email protected]> * rm3l's suggestion on using err when not shadowed and enhance error messages Signed-off-by: Parthvi Vala <[email protected]> Fix validation errors Signed-off-by: Parthvi Vala <[email protected]> * Change arg position in IsValidProjectDir Signed-off-by: Parthvi Vala <[email protected]> * rename isConflicting to getConflictingFiles Signed-off-by: Parthvi Vala <[email protected]> * Add zip files for starterproject with empty dir Signed-off-by: Parthvi Vala <[email protected]> * Add unit tests covering starterprojects with empty dir for both conflicting and non-conflicting cases Signed-off-by: Parthvi Vala <[email protected]> * Handle error while walking Signed-off-by: Parthvi Vala <[email protected]> * Delete temp dirs Signed-off-by: Parthvi Vala <[email protected]> --------- Signed-off-by: Parthvi Vala <[email protected]> Co-authored-by: Armel Soro <[email protected]>
- Loading branch information
1 parent
f543afa
commit 47234b9
Showing
11 changed files
with
372 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.