GitHash 1.5.0 released, this release adds support for PHP 8.5.
The package is to get the current git hash (short or long) in your application.
GitHash 1.5.0 released, this release adds support for PHP 8.5.
The package is to get the current git hash (short or long) in your application.
And I released Laravel GitHash 1.9.0
The package is to get the current git hash (short or long) in your Laravel application.
@ramsey Interesting question, I personal never have used a git archive.
If I read it correctly it creates an archive from your repository, but maybe I'm wrong.
The current finders doesn't work with an archive ( see: https://gitlab.com/tjvb/githash#different-hashfinders )
And I'm thinking, how do you run a project that is inside an archive 🤔 but if possible it can be interesting to add support for it.
@ramsey I did a fast check and in the zip file I didn't see any reference about a version.
Maybe I need to document in a clear way that the package target is to get the version from the project/application and not from a dependency.
@ramsey The Laravel wrapper for the package has the support for a cache file.
That is something that can be used in a build step.
There is an example in the readme about the usage with envoyer: https://gitlab.com/tjvb/laravel-githash#envoyer-example
The base package doesn't have any cache file support build in. Currently I think it is good to let the application handle it to keep the package small.
Thanks for the messages, it is good and nice to think about it again 😃👍