laravel-fast-refresh-database icon indicating copy to clipboard operation
laravel-fast-refresh-database copied to clipboard

Creating a checksum not based on github commands

Open kamilpiech97 opened this issue 2 years ago • 2 comments

Now checksum is creating based on git command what if specific project is used only localy without any repository? It is marginal situation but possible.

kamilpiech97 avatar Jan 17 '23 10:01 kamilpiech97

Hey @kamilpiech97 thanks for this, sorry for the delay in responding!

I agree there's times where git isn't available - I would be happy to write a quick try-catch and if the git branch couldn't be found, we just continue without it. Or we use Process again to check if a Git repository exists in the path?

Sammyjo20 avatar Sep 28 '23 06:09 Sammyjo20

The same problem exists in CI pipelines, where testing takes place in a Docker image without Git. I would find it nicer if instead of Git $migrations['gitBranch'] you simply use $migrations['salt'] and then also enter the salt via an environment variable

jansgescheit avatar Jul 15 '24 12:07 jansgescheit