Skip to content
This repository was archived by the owner on May 18, 2026. It is now read-only.

Add support for jar/zip format for local-path flag#121

Merged
rashedkvm merged 2 commits into
vmware-tanzu:mainfrom
shashwathi:iss-29
May 19, 2022
Merged

Add support for jar/zip format for local-path flag#121
rashedkvm merged 2 commits into
vmware-tanzu:mainfrom
shashwathi:iss-29

Conversation

@shashwathi
Copy link
Copy Markdown
Contributor

What this PR does / why we need it

Add support for jar/zip format for local-path flag

Which issue(s) this PR fixes

Fixes #29

Describe testing done for PR

Download simple java jar file and build zip file(using zip cli).

Comment thread pkg/commands/workload.go
defer os.RemoveAll(zipContentsDir)
contentDir = zipContentsDir
} else {
return false, fmt.Errorf("unsupported file format %q", opts.LocalPath)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

cc @danfein : this is the error if user provides a file which is not a dir and not a valid zip file. If you want something else, please add the msg here

Comment thread pkg/source/archive.go Outdated
Comment thread pkg/commands/workload.go Outdated
@rashedkvm rashedkvm merged commit 80bb7c2 into vmware-tanzu:main May 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--local-path supports jar/zip

5 participants