pivotal-cf / pivnet-resource

Concourse Resource to interact with the Tanzu Network API V2 interface.
Apache License 2.0
29 stars 37 forks source link

Why not use direct_uploads endpoint? #131

Closed ewrenn8 closed 4 years ago

ewrenn8 commented 4 years ago

This is more of a question than an issue, but we currently have a github release in which the artifacts for a certain platform have the same name across versions, for example: ytt-darwin-amd64. This is causing errors when trying to automate the release creation with this resource because of duplicate filenames, although this is permitted via the UI. It looks like the browser uses the https://network.pivotal.io/rails/active_storage/direct_uploads endpoint which provides a key and upload url whereas this resource computes a key locally and constructs the upload URL itself. Is there a specific reason this resource doesn't allow the same behavior that the UI does?

Thanks! Eli

Note: we are more than willing to update our releases to include version numbers to distinguish them.

ewrenn8 commented 4 years ago

I see its not part of their API docs and is probably meant only for consumption in browser