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

Re-publish package with capital name doesn't work #279

Open
Ethella opened this issue Mar 12, 2020 · 3 comments
Open

Re-publish package with capital name doesn't work #279

Ethella opened this issue Mar 12, 2020 · 3 comments

Comments

@Ethella
Copy link

Ethella commented Mar 12, 2020

I'm the owner of Magic-sdk package

published Magic-sdk first package CocoaPods/Specs@940b9f2
Remove Magic-sdk the only package CocoaPods/Specs@dc2e10c

Try to publish with the same name with capital letters, and here's what I get:

$ pod trunk push Magic-SDK.podspec 
Updating spec repo `trunk`

CocoaPods 1.9.1 is available.
To update use: `sudo gem install cocoapods`

For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.9.1

Validating podspec
 -> Magic-SDK (0.1.0)
    - NOTE  | xcodebuild:  note: Using new build system
    - NOTE  | [iOS] xcodebuild:  note: Planning build
    - NOTE  | [iOS] xcodebuild:  note: Constructing build description
    - NOTE  | [iOS] xcodebuild:  note: Execution policy exception registration failed and was skipped: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" (in target 'Magic-SDK' from project 'Pods')
    - NOTE  | [iOS] xcodebuild:  note: Execution policy exception registration failed and was skipped: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" (in target 'Pods-App' from project 'Pods')
    - NOTE  | [iOS] xcodebuild:  note: Execution policy exception registration failed and was skipped: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" (in target 'App' from project 'App')
    - NOTE  | [iOS] xcodebuild:  warning: Skipping code signing because the target does not have an Info.plist file and one is not being generated automatically. (in target 'App' from project 'App')

[!] {"name"=>["is already taken"]}

Could anyone help me to completely remove the name from the registry? Much appreciated

Sorry for pinging unexpectedly @orta @dnkoutso

@orta
Copy link
Member

orta commented Mar 23, 2020

We're open to well tested PRs which allow this to trunk

@Ethella
Copy link
Author

Ethella commented Apr 1, 2020

@orta @dnkoutso
Sorry, I'm not clear about what feature is needed. I would spend my effort on fixing this issue.

But please help me out, which feature shall I propose?

  • Allow the owner to change the name of the package.
  • Allow the owner to unpublish the package. Deregister the name from the database?
  • Could I reset the name in the database?

@orta
Copy link
Member

orta commented Apr 20, 2020

I don't remember the original discussions anymore as it was 5-6 years ago when we made this, but I'd be OK with existing authors publishing new versions of pods with the same case when all packages have been unpublished.

I'm very wary of allowing any case changing in pods because we support the local file systems as a database and that's bound to break something somewhere.

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