-
Notifications
You must be signed in to change notification settings - Fork 18
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
Support building from a local directory / non-Packagist source #79
Comments
Thanks - this should be possible once #48 is complete 👍 |
With the PR #83, this becomes possible, and the following steps will enable you to download/build/install source code for a PIE package that has not yet been published to Packagist:
Example for a GitHub repo: {
"repositories": [
{
"type": "vcs",
"url": "https://github.com/foo/bar"
}
]
} Example for a local repo: {
"repositories": [
{
"type": "path",
"url": "/path/to/foo/bar"
}
]
}
Given the above possibility, maybe adding a new
Usage examples:
Since repository configuration can actually get quite advanced, I'm not sure we could get a fully comprehensive syntax in the CLI for defining all possible kinds of repositories, so maybe just providing the basics would suffice? I'm open to feedback on how we actually would do this though, perhaps there is a better way :D |
Is it possible to add a custom repository like private composer into the It's to allow a repository to help distribute extension code sources or pre-built DLL. Especially the oldest extensions. |
I have not tried a private repo, feel free to try it, the above guide may help :) |
The minimal structure for the package is: {
"name": "smarty/smarty",
"version": "3.1.7",
"dist": {
"url": "https://www.smarty.net/files/Smarty-3.1.7.zip",
"type": "zip"
}
} For an extension, the I have this idea of JSON structure. Right? {
"name": "smarty/smarty",
"version": "3.1.7",
"sources": {
"url": "https://www.smarty.net/files/Smarty-3.1.7.zip",
"type": "zip"
"reference": "tags/3.1.7"
}
"dist": {
"url": "https://www.smarty.net/files/Smarty-3.1.7-8.4-ts-vs17-x86_64.zip",
"type": "zip"
},{
"url": "https://www.smarty.net/files/Smarty-3.1.7-8.4-ts-vs17-x86.zip",
"type": "zip"
},{
"url": "https://www.smarty.net/files/Smarty-3.1.7-8.4-nts-vs17-x86_64.zip",
"type": "zip"
},{
"url": "https://www.smarty.net/files/Smarty-3.1.7-8.4-nts-vs17-x86.zip",
"type": "zip"
}
} |
@macintoshplus I am not sure what your latest comment means, or how it relates to building from different Composer repositories, which is what the OP is asking about. The |
This would be useful to test if what I've written into
composer.json
is correct and whether the build actually works, before committing to my changes by pushing them into a public repository and submitting them to Packagist.This includes both the test after the initial pie-ification and before submission to Packagist and also tests after adding or removing configure flags.
see https://phpc.social/@timwolla/113367860412703002
The text was updated successfully, but these errors were encountered: