-
Notifications
You must be signed in to change notification settings - Fork 83
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
Please include the examples and tests in the release tarball #55
Comments
+1 Everything is part of the project, using .gitattributes is a terrible hack. |
Excluding unused files for normal users is much safer (otherwise we have check that eery included file doesn't have any flaw/security issues). If you want to install the full package using composer, just run composer install --prefer-source If you are not using composer, but you still want the full package, just run git clone --depth=1 https://github.com/maxmind/MaxMind-DB-Reader-php.git maxmind
rm -rf maxmind/.git |
This doesn't help with the original problem: I'm creating a package for Gentoo... |
@mlocati just a reminder, composer is NOT an installer (but a Dependency Manager for PHP ) PHP don't have any (well, the old pear/pecl command still work) BTW, this have already been discussed ad nauseam... .gitattributes is an ack to workaround the lack of installer for PHP. You always have some work to "install" an appllication, composer install on the dev, generate the asset, minify, cleanup dev tools... etc... then deploy to prod. @oschwald do what is simpler for you, we are now used to create git snapshot for downstream distribution (and we are the butt of all-non-php-developers jokes) |
I don't know the Gentoo package creation process: what's needed for it? |
@remicollet composer is not a system-wide installer, but a project dependency manager. That means that it can install dependencies on a project basis. So, it still installs packages.
Not always: for instance, this package doesn't have any asset to be generated, nothing to be minified. And for cleaning up dev tools we have |
Basically just a tarball. We're a source-based distribution, so a "package" is essentially a series of steps that will be executed on the user's machine to get the thing installed. Something like the following,
The
And probably some others, yada yada. But basically we're all (distro packagers) trying to do the same thing. Take a fixed version from upstream and figure out a way to install it once, globally. The existing release tarball already works, but we can't run the tests or install the examples, because they're not in there. |
What about a TravisCI job (which can also be scheduled to be executed daily with a TravisCI cron job), scheduled daily, that updates the GitHub releases by adding a |
It sounds like that would work, though if you're feeling extra nice you could name them something like |
Would uploading a "release" tarball to GitHub with everything but |
That sounds perfect. |
Hi, I'm creating a Gentoo package for MaxMind-DB-Reader-php, and the examples and tests would be useful for us. The examples get installed globally, and we have the option to run the tests before installation to make sure that everything works as expected (before, say, proceeding with an upgrade).
The text was updated successfully, but these errors were encountered: