summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-04-01 09:06:24 +0200
committerGitHub <noreply@github.com>2022-04-01 09:06:24 +0200
commit02151a078dd5f45defaa42b19bf127bc2c999944 (patch)
tree7f30c42ce62612927f0c0c2122053d9edc764f3a
parent305a641a418f0b7fcd869f5d21f5c740eaf63075 (diff)
parent2b4d6b26348c6de5cfc6f246e84783a82bb5cc27 (diff)
Merge pull request #21930 from vespa-engine/ean/allow-abs-path
No need to require relative path to application package
-rw-r--r--client/go/vespa/application.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/client/go/vespa/application.go b/client/go/vespa/application.go
index 76bc7d41f18..7bace69ec52 100644
--- a/client/go/vespa/application.go
+++ b/client/go/vespa/application.go
@@ -64,10 +64,6 @@ func (ap *ApplicationPackage) IsJava() bool {
func isZip(filename string) bool { return filepath.Ext(filename) == ".zip" }
func zipDir(dir string, destination string) error {
- if filepath.IsAbs(dir) {
- message := "Path must be relative, but '" + dir + "'"
- return errors.New(message)
- }
if !util.PathExists(dir) {
message := "'" + dir + "' should be an application package zip or dir, but does not exist"
return errors.New(message)