You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2020/10/21 21:27:43 UTC
[camel-k] 08/13: Remove reference to dependencies directory.
This is an automated email from the ASF dual-hosted git repository.
nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 34c9a42d30a3328a67f2cb3aa64315b67fb74c4f
Author: Doru Bercea <gh...@ibm.com>
AuthorDate: Tue Oct 20 13:53:26 2020 -0400
Remove reference to dependencies directory.
---
pkg/cmd/inspect.go | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/pkg/cmd/inspect.go b/pkg/cmd/inspect.go
index f7083a3..d03c67c 100644
--- a/pkg/cmd/inspect.go
+++ b/pkg/cmd/inspect.go
@@ -86,20 +86,6 @@ func (command *inspectCmdOptions) validate(args []string) error {
}
}
- // If provided, ensure that that the dependencies directory exists.
- if command.DependenciesDirectory != "" {
- dependenciesDirectoryExists, err := util.DirectoryExists(command.DependenciesDirectory)
- // Report any error.
- if err != nil {
- return err
- }
-
- // Signal file not found.
- if !dependenciesDirectoryExists {
- return errors.New("input file " + command.DependenciesDirectory + " file does not exist")
- }
- }
-
// TODO: validate list of additional dependencies i.e. make sure that each dependency is
// in the correct format.