-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Locking pacage to specific hash does not work #266
Comments
Hi @mikk150, we are facing same issue, but with branch-alias. Need to do |
Hi @mikk150 I investigated the issue and this bug happens because composer has hardcoded the regex to replace the dist url commit reference in his library.
But I found a workaround for this issue, I'll change root composer metadata format to support For example // /packages.json {
"packages": [],
"notify": "/downloads/%package%",
"notify-batch": "/downloads/",
"metadata-changes-url": "/metadata/changes.json",
"mirrors": [
{
"dist-url": "https://pkg8.loc/zipball/%package%/%reference%.%type%",
"preferred": true
}
],
"metadata-url": "/p2/%package%.json",
"available-packages": [ ],
"providers-lazy-url": "/p/%package%.json"
} And composer.lock will be looks like this {
"name": "phpstan/phpstan-src",
"version": "1.12.x-dev",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan-src.git",
"reference": "285ca8b7117a46008039adea0c4806c7d52f21dc"
},
"dist": {
"type": "zip",
"url": "https://pkg8.loc/zipball/phpstan/phpstan-src/2507e387c57b5b9577ee8d02226650880b731697.zip",
"reference": "285ca8b7117a46008039adea0c4806c7d52f21dc",
"mirrors": [
{
"url": "https://pkg8.loc/zipball/%package%/%reference%.%type%",
"preferred": true
}
]
}, |
Description
If I want to lock package that is being hosted in packeton to specific commit, it states that reference is commit I locked it to, but dist zip is still referencing to newest zip that packeton knows of
To reproduce:
Can you reproduce the bug on the Packeton demo site?
Yes
Database
MySQL
Screenshots
No response
How are you running Packeton?
Kubernetes cluster
The text was updated successfully, but these errors were encountered: