RediStack icon indicating copy to clipboard operation
RediStack copied to clipboard

about the dependency url

Open micezhao opened this issue 4 years ago • 6 comments

Today's afternoon, I tried to integrate the Redis to vapor 4 (my swift version is 5.4)

according to this doc , I copied the url ( .package(url: "https://gitlab.com/mordil/RediStack.git", .branch("master"))) to my Package.swift

but the complier reported an unwanted problem, it indicated :" https://gitlab.com/Mordil/RediStack: An unknown error occurred. unexpected return value from ssl handshake -9806 (-1)"

Meanwhile, I found another reference on vapor's doc (https://docs.vapor.codes/4.0/redis/overview/). Unfortunately, it was also unable to be fixed.

Finally, I attempted to substitute the "gitlab" by "github", then the dependency package can be install on my app

To be honesty, I had spent more to an hour to address this issue. so , would you mind to change the url into the right way ?

micezhao avatar May 17 '21 14:05 micezhao

@micezhao The RediStack package is hosted on Gitlab as that's where the development is done - this repo is just a mirror. Can you clone the package directly from Gitlab?

0xTim avatar May 18 '21 15:05 0xTim

@micezhao The RediStack package is hosted on Gitlab as that's where the development is done - this repo is just a mirror. Can you clone the package directly from Gitlab?

No! I have tried several times by fetching this dependency directly.Whereas, The complier did not resolved the package info correctly. Actually , even if the dependency can be fetched with url in GitHub and resolved normally in Xcode.However , I still have no idea of how use this in vapor , not like in Java with Spring-Framework.

截屏2021-05-19 06 03 24

micezhao avatar May 18 '21 22:05 micezhao

This looks like standard SSL errors.

Are you able to vie the GitLab repo in a browser?

also, what does your Package.swift look like?

Mordil avatar May 19 '21 01:05 Mordil

@Mordil
I can access the url in chrome the following picture is my content of Package.swift: 截屏2021-05-19 09 44 46

micezhao avatar May 19 '21 01:05 micezhao

Ok, 2 problems:

  1. The product and package names are case sensitive so it should be RediStack for both
  2. the latest Master has breaking changes that are incompatible with Vapor right now unless you intend to do all the glue code yourself.

it is recommended to use the github.com/vapor/redis v4 package to gain Vapor+Redis features

Mordil avatar May 19 '21 02:05 Mordil

@Mordil OK, I have addressed this problem according to your method ! thanks 😊

micezhao avatar May 19 '21 06:05 micezhao