-
Notifications
You must be signed in to change notification settings - Fork 31
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
Using ./ in a relative path corrupts the bundle zip #292
Comments
On Mac: Using -f ./folder/apiproxy worked too and I could deploy in the UI, the downloaded zip has:
|
Interesting. I'm also on a mac and it was totally broken for me when using the ./ prefix. |
@gislikonrad / @kurtkanaskie - can you share the apigeecli version you are running? |
|
I installed yesterday. I'm running MacOS Ventura 13.5.2 (22G91) on an M1 Max Macbook Pro. |
Same for me regarding Mac and cli |
I do notice that the exported bundle has an extraneous folder in it, but it still deploys.
|
@kurtkanaskie What if you point to a subfolder that is deeper that two levels? Example, './proxies/folder/apiproxy' |
There have been others with a similar problem (#276). Unfortunately we have not been able to reproduce it. I was able to create and deploy a proxy with: |
I think I have identified the problem. My comment here was incorrect. That proxy did not deploy successfully. I narrowed the problem to this: 1) If there are two or more subfolders 2) And the relative path begins with a folder that is used in the proxy bundle (ex: proxies, policies, sharedflows etc), then we run into a problem. I think this fix addresses the problem. @kurtkanaskie - I can show you how to reproduce the problem and then we can see if the fix addresses all variations. |
@gislikonrad - we just released a beta version export APIGEECLI_VERSION=v1.124.0-beta
curl -L https://raw.githubusercontent.com/apigee/apigeecli/main/downloadLatest.sh | sh - |
This has been successfully fixed. Thank you. |
When using
apigeecli apis create bundle -n helloworld -f ./myfolder/apiproxy
, the proxy gets created, but is undeployable. This is due to differences in the bundle zip.I wrote a program to output the entries in the bundle zip.
This is what a bundle looks like that was created with the
-f proxies/hellowworld/apiproxy
option....and this is what a bundle looks like that was created with
-f ./proxies/helloworld/apiproxy
option.The text was updated successfully, but these errors were encountered: