Skip to content
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

Cocoapods 1.11.0 throwing error "userinfo not supported. [RFC3986]" when trying to install a private pod. #10941

Closed
1 task done
nahuelDeveloper opened this issue Sep 10, 2021 · 11 comments
Milestone

Comments

@nahuelDeveloper
Copy link

nahuelDeveloper commented Sep 10, 2021

Report

What did you do?

Updated CocoaPods to 1.11.0. Run pod install to install dependencies in my project. We have a private pod, so i pass two environment variables for that particular pod's url, and also for the Specs url. The Specs url is similar to the following url:

'https://' + ENV['USERNAME'] + ':' + ENV['CREDENTIALS'] + '@bitbucket.org/foobar/Specs.git'

What did you expect to happen?

Install all pod dependencies correctly. Installation was working fine when using CocoaPods 1.10.2

What happened instead?

The installation failed, with the following error :
Couldn't determine repo type for URL: https://foo:***@bitbucket.org/foobar/Specs.git: userinfo not supported. [RFC3986]

CocoaPods Environment

CocoaPods : 1.11.0
Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20]
RubyGems : 3.0.3
Host : macOS 11.5.1 (20G80)
Xcode : 12.5.1 (12E507)
Git : git version 2.30.1 (Apple Git-130)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib

Project that demonstrates the issue

I don't have a project that i can link, the pod that causes this issue is private and requires credentials to be installed.

I'm creating this issue because i think it could be a bug that is related to the latest release of CocoaPods, but i'm not sure. Maybe there was an update and the RCF 3986 specification is no longer supported? If that's the case, please let me know and i will search for an alternative.

I searched for similar issues, and i also read the Changelog to see the changes of the latest release, but i couldn't find anything. Any help will be very appreciated, thanks in advance!

@dnkoutso
Copy link
Contributor

dnkoutso commented Sep 10, 2021

This is fixed in Core by CocoaPods/Core#705 and the 1-11-stable branch CHANGELOG includes it. We have not merged it yet to master.

Lets close for now and we can verify once 1.11.1 ships.

@dnkoutso
Copy link
Contributor

@nahuelDeveloper can you point to the latest 1-11-stable branch to try it out and ensure it works?

@dnkoutso
Copy link
Contributor

it seems that we can still parse this URL even without the CocoaPods/Core#705 fix....... so this might be something different...?

@dnkoutso dnkoutso reopened this Sep 10, 2021
@dnkoutso dnkoutso added this to the 1.11.1 milestone Sep 10, 2021
@dnkoutso
Copy link
Contributor

@nahuelDeveloper can you also try bumping to a version of Ruby like 2.6.3 or 2.6.6?

@dnkoutso
Copy link
Contributor

ah I can now reproduce, this is a different issue actually:

[!] Couldn't determine repo type for URL: `https://foo:bar@bitbucket.org/foobar/Specs.git`: userinfo not supported.  [RFC3986]

Has to do with OpenURI.

@dnkoutso
Copy link
Contributor

Looks like related to 4a9a504

@dnkoutso
Copy link
Contributor

@jasl any ideas?

@dnkoutso
Copy link
Contributor

I think I got a fix.

@dnkoutso
Copy link
Contributor

Fixed by #10942

@nahuelDeveloper
Copy link
Author

@dnkoutso thank you very much for the fix! I ran pod install again today with the latest release of CocoaPods (1.11.1), and i'm grateful to see the "Pod installation complete!" message again.

@dnkoutso
Copy link
Contributor

excellent! also shipped 1.11.2 with an additional fix if you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants