NotionCommotion Posted September 21, 2022 Share Posted September 21, 2022 I wish to use this version of ApiPlatformExtension which is the most current on the 3.0 branch. Note that there is no tag associated with it as v3.0.0 is several days older. Now, on packagist, there are several versions available, and based on the 2022-09-20 08:49 UTC date associated with 3.0.x-dev, it appears that is the one I want. It is my understanding that this branch only looks like a version, but isn't as indicated by the .x in the name. How should I make my project use the specific file which I stated above I wish to use? The project is not in production, so while maybe not ideal, I am okay with using an untagged version. I've tried the following and multiple similar attempts, but only get the previous version of the file. { "type": "project", "license": "proprietary", "minimum-stability": "stable", "prefer-stable": true, "require": { "php": ">=8.1", "api-platform/core": "3.0.x-dev", ... } } Quote Link to comment https://forums.phpfreaks.com/topic/315354-making-composer-provide-untagged-git-file/ Share on other sites More sharing options...
NotionCommotion Posted September 21, 2022 Author Share Posted September 21, 2022 Sorry, thought I had included links to both the github and composer pages but evidently not. Github: https://github.com/api-platform/core/blob/3.0/src/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php Packagist: https://packagist.org/packages/api-platform/core#3.0.x-dev Quote Link to comment https://forums.phpfreaks.com/topic/315354-making-composer-provide-untagged-git-file/#findComment-1600895 Share on other sites More sharing options...
Solution kicken Posted September 21, 2022 Solution Share Posted September 21, 2022 You can tell composer to pull a specific commit by adding #hash after version. "api-platform/core": "3.0.x-dev#14c7cba" Normally just doing 3.0.x-dev would pull the latest version, but I think because both the main branch and 3.0 branch use this alias it causes an issue and for some reason composer prefers the main branch. 1 Quote Link to comment https://forums.phpfreaks.com/topic/315354-making-composer-provide-untagged-git-file/#findComment-1600901 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.