yonaskolb / Mint

A package manager that installs and runs executable Swift packages
MIT License
2.28k stars 122 forks source link

Problems installing R.Swift #144

Closed alexanderwe closed 5 years ago

alexanderwe commented 5 years ago

I am not sure whether this belongs in this repo or in https://github.com/mac-cain13/R.swift, so I am sorry if this is not an error with Mint itself.

I am trying to follow the instructions to install R.Swift with Mint by specifying it inside my Mintfile:

mac-cain13/R.swift

When I then run mint bootstrap I get the following errors:

❯ mint bootstrap
🌱  MINTFILE: repository 'mac-cain13/R.swift' has no defined version. Specify a version using <Repo>@<Commitish>.
🌱  Found 1 package in Mintfile
🌱  MINTFILE: repository 'mac-cain13/R.swift' has no defined version. Specify a version using <Repo>@<Commitish>.
🌱  Finding latest version of R
🌱  Git repo not found at "https://'mac-cain13/R.swift'"

When I explicitly specify the git url Mint finds the repository but then afterwards cannot resolve the SPM package:

https://github.com/mac-cain13/R.swift.git
❯ mint bootstrap
🌱  MINTFILE: repository https://github.com/mac-cain13/R.swift.git has no defined version. Specify a version using <Repo>@<Commitish>.
🌱  Found 1 package in Mintfile
🌱  MINTFILE: repository https://github.com/mac-cain13/R.swift.git has no defined version. Specify a version using <Repo>@<Commitish>.
🌱  Finding latest version of R
🌱  Cloning R v5.0.3
🌱  Resolving package
🌱  Executable product not found in R v5.0.3

For me it seems that Mint has trouble handling the . inside the package name. Is there something I can do about it ? Or is this some error related to handling the package names ?

alexanderwe commented 5 years ago

I should have read the R.swift repository more carefully. The PR that introduced Mint support is not yet available in any release. Therefore only an installation from the R.swift master branch works.

Putting

https://github.com/mac-cain13/R.swift.git@master

in my Mintfile worked.

I am sorry for the confusion.