S3 icon indicating copy to clipboard operation
S3 copied to clipboard

Dependencies still appear to be off

Open EricWVGG opened this issue 7 years ago • 14 comments

building with 3.0.0-RC3.0.1

backgroundExecute(`
    code: 1,
    error: "error: the package PackageReference(identity: \"s3\", name: nil, path: \"https://github.com/LiveUI/S3.git\", isLocal: false) @ 3.0.0-alpha.1 contains revisioned dependencies:\n    PackageReference(identity: \"vaportesttools\", name: nil, path: \"https://github.com/LiveUI/VaporTestTools.git\", isLocal: false) @ master\n"

EricWVGG avatar Aug 18 '18 21:08 EricWVGG

Having the same issue here..

Joebayld avatar Aug 20 '18 06:08 Joebayld

Should be fixed in https://github.com/LiveUI/S3/pull/13, could you guys check?

rafiki270 avatar Sep 10 '18 09:09 rafiki270

I'm still having problems here. Do I need the VaporTestTools dependency? I'd rather just get rid of it for my use.

Joebayld avatar Sep 11 '18 19:09 Joebayld

I see, we need it as it will be easiest way to test/mock S3 lib in your apps. I understand there is not much at the moment but there is quite lot of work coming into this ... but yeah, if there is a compatibility issue will fit that ASAP! @Joebayld

rafiki270 avatar Sep 11 '18 19:09 rafiki270

Got it. I'll try and sort out why this is being problematic and report back.

Joebayld avatar Sep 11 '18 20:09 Joebayld

If you having issues I would assume problem will be somewhere downstream on the test tools dependencies

rafiki270 avatar Sep 11 '18 20:09 rafiki270

@rafiki270 I am hitting this problem as well. Since this is (to my knowledge) the only Vapor 3 compatible S3 library I would classify this as a pretty critical problem. Any chance you can look into why dependencies might not be resolving? Thank you!

jdmcd avatar Sep 15 '18 14:09 jdmcd

@mcdappdev really don't see what could be off :( ... any ideas?

rafiki270 avatar Sep 16 '18 08:09 rafiki270

I'm not sure, unfortunately. Your package files seem to be ok but maybe it's something with Package.resolved?

jdmcd avatar Sep 16 '18 12:09 jdmcd

I made a fork that only depends on Vapor and therefore avoids the aforementioned dependency problems. The fork only provides the S3 signer functionality, but if that's all you need, then it works: https://github.com/rausnitz/S3.

(I'm not sure why I had to specify the branch in Package.swift. When I tried doing from: "3.0.0" then my vapor update command would hang.)

rausnitz avatar Sep 16 '18 15:09 rausnitz

@rausnitz Awesome! I'll use yours. Thanks :)

jdmcd avatar Sep 16 '18 15:09 jdmcd

guys, do you by any chance have any logs to share or does the process just freeze?

rafiki270 avatar Sep 20 '18 13:09 rafiki270

I think this is an issue with the Swift Package Manager. I had this too, but updated the dependencies of the main project (all the latest version of the packages, some pinned to the latest version) and deleted Package.resolved. After that, run

vapor build --verbose --clean

and you will see the package that the package manager gets stuck resolving.

lluuaapp avatar Sep 21 '18 06:09 lluuaapp

This is working for me now with RC2 (and Mojave, if that makes any difference).

EricWVGG avatar Oct 01 '18 21:10 EricWVGG