a-r-m-i-n / min

TYPO3 CMS extension "min" - Compressed CSS, JS and HTML output for TYPO3
7 stars 8 forks source link

Old versions no longer downloadable #4

Closed Mattia98 closed 2 years ago

Mattia98 commented 2 years ago

Hi,

it seems that during the migration from Bitbucket to GitHub the references in packagist have not been updated. When trying to install 1.7.0 for example I get this error:

The TYPO3 extension package "t3/min", does not define an extension key in its composer.json. Please report this to the author of this package. Specifying the extension key will be mandatory in future versions of TYPO3 (see: https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ExtensionArchitecture/ComposerJson/Index.html#extra)
  - Installing t3/min (1.7.0): Downloading    Failed to download t3/min from dist: Could not authenticate against bitbucket.org
    Now trying to download from source
  - Installing t3/min (1.7.0):     No bitbucket authentication configured. Falling back to ssh.
Cloning fd6f290b05
    No bitbucket authentication configured. Falling back to ssh.

  [RuntimeException]                                                                                                                                                                                                                                                                                                                                                                                                                        
  Failed to execute git clone --no-checkout 'git@bitbucket.org:t--3/min.git' 'redacted/typo3conf/ext/min' && cd 'redacted/typo3conf/ext/min' && git remote add composer 'git@bitbucket.org:t--3/min.git' && git fetch composer && git remote set-url origin 'git@bitbucket.org:t--3/min.git' && git remote set-url composer 'git@bitbucket.org:t--3/min.git'  

  Cloning into 'redacted/typo3conf/ext/min'...                                                                                                                                                                                                                                                                                                                                                       
  The requested repository either does not exist or you do not have access. If you believe this repository exists and you have access, make sure you're authenticated.                                                                                                                                                                                                                                                                      
  fatal: Could not read from remote repository.                                                                                                                                                                                                                                                                                                                                                                                             

  Please make sure you have the correct access rights                                                                                                                                                                                                                                                                                                                                                                                       
  and the repository exists.                                                                                                                                                                                                                                                                                                                                                                                                                

While trying to install 1.8.0 works, as it downloads the package from GitHub.

Is this something you can fix? That'd be very appreciated!

Regards Mattia

revoltek-daniel commented 2 years ago

remove t3 package from composer.lock and require again. if this did not work change urls in composer.lock.

did this in multiple projects.

a-r-m-i-n commented 2 years ago

Yes, the problem is that Composer saves the path of the git repository in composer.lock.

Did you tried to just update the t3/min package like that?:

composer update t3/min
Mattia98 commented 2 years ago

The project I was trying to install does not have a composer.lock file, so it's freshly generated. Doing composer update t3/min has the same issue.

Even doing a fresh install by running composer require t3/min:1.7.0 in an empty folder causes the same issue.

a-r-m-i-n commented 2 years ago

Okay. This is sad to hear. You probably need to clear your local composer cache, especially the repository part

a-r-m-i-n commented 2 years ago

I assume, that clearing Composer's caches, worked.