Skip to content
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

Fix is_older_than_x_days: use find instead of stat #481

Merged

Conversation

paulo-ferraz-oliveira
Copy link
Contributor

@paulo-ferraz-oliveira paulo-ferraz-oliveira commented Oct 21, 2023

Description

I'm moving to find, which seems to be more closely related in FreeBSD, Ubuntu and macOS, for example. (stat was also failing in Ubuntu, as it was only tested on macOS).

Only relevant in case the lock file is present, but still...

This was tested in:

* macOS - 13.5.1
* Ubuntu - 22.04.3

I didn't test on FreeBSD (couldn't find an easy way to run it) but
according to what I read in the `find` manual this solution should
be working
@paulo-ferraz-oliveira paulo-ferraz-oliveira changed the title Fix call to stat Fix is_older_than_x_days: use find instead of stat Oct 22, 2023
@paulo-ferraz-oliveira
Copy link
Contributor Author

I had previously tested this only on macOS, but today I launched a Ubuntu container to start on a new pr and found this issue.

@paulo-ferraz-oliveira paulo-ferraz-oliveira merged commit 736b8fb into kerl:master Oct 24, 2023
9 checks passed
@paulo-ferraz-oliveira paulo-ferraz-oliveira deleted the fix/stat-for-st_mtime branch October 24, 2023 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants