-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Support for Bintray #120
Comments
I'll look into it! In the mean time you can also use https://www.minio.io/ Take a look at #118 |
@rob-nash I took a look at Bintray and I have few questions I could not find an answer to.
I guess this value should be configurable rather than just take the username of the current user? I don't have access to the enterprise version so I can't implement anything that requires that version. |
Hi there. I am new to Bintray myself. I setup an open source account yesterday and uploaded some binaries via their API. Seems pretty good. Open source accounts are free. I think I need to accept a EULA before I attempt my first download of one of these binaries. I'll get back to you on that. Facebook v0.3.0 is 18Mb so my Carthage bootstrap is pretty slow! This is a snapshot of an API call I built with postman. The body contains a zip of all the files built by Carthage.
Authentication is basic. So base64 encode the following.
example
A checksum of the file you're uploaded is probably worth doing. Can achieve like so
Maybe just support open source accounts, for now? |
If I attempt to download one of these binaries myself with
I don't need to accept a EULA. The repo is public so I think someone attempting to download this without a Binary account, might get an error code and must accept a EULA, beforehand. It might be easier to mention in README
|
Hi, The cache structure that Rome uses is not quite what you have there, so I'll explain to understand if this is fine also for Bintray.
See https://github.com/blender/Rome#cache-structure For example, dequable would be stored at:
If I break this down in Bintray terms this would be
I'm trying to understand if this is legal with the API or not. |
The following would work.
|
Cool! I'll play some more around and see that I can do. The reasons for not having one zip are:
|
@rob-nash When you uploaded your binaries, what did you use as In my idea this would be the version of the library you're trying to upload as stated in the What is the point of |
For Uploading Set a header in your request
For Downloading In the above example Get package will give you the available Get Version Files returns the files found for a given version. You will be able to extract a path from these responses. |
So what version is at https://dl.bintray.com/rob-nash/BinaryDump/iOS/dequable.zip ? Where is the package information here? I find this service very confusing in general, or at least confusing to use given how Rome works. Rome has to go from a
to upload/download locations in Bintray The upload API is:
How would Rome derive Note that |
You have a lot of work and Bintray looks like quite a bit of effort. Let me see if I can build a small wrapper for Bintray, deployable as a cross-platform executable. It might take me a while, so you might want to close this ticket for now. If I am successful, I will re-open this ticket, so you can take a look at my work and assess if it is suitable for Rome. What you think? |
Just had a look at the API.
My binary profile currently has Dequable 1.3.0 When I attempt to upload 1.2.0 with the same :file_path and the following headers, I receive a 409 conflict error code and a message. { Navigating the website, I can see that the file directory responds to version filters. So it's important to realise two things here.
So going forward, a naming convention is required. Such as
:subject = rob-dash :repo = BinaryDump :package = Dequable
So we can supply the following paths
Get Version Files will return information about all of these files. |
Looks like there is already a wrapper 👍 Phew! |
If I understand correctly your idea is to have 1 So, in practice, given the following Cartfile.resolved
where ios-rest.git resolves to 2 targets It would translate to (omitting bcsymbolmaps):
So, puts are solved. How about Gets? Should the flow be:
|
Hi. Sorry for delay. Yes, I believe it should be as you say. Perform get 1, perform get 2, then build URL. |
It looks like the API is still released as version 1, even after several years of it being in the public domain. You may want to use that specific version, to be safe.
|
@rob-nash Thanks to @BalestraPatrick you can now use whatever backend you want |
You can try the pre-release at: https://github.com/blender/Rome/releases/tag/v0.22.0.59 |
Hi,
This solution is pretty cool. Setting up Amazon S3 looks scary though. Something like bintray might be cool?
https://bintray.com/
The text was updated successfully, but these errors were encountered: