Skip to content

Fix: make stat cross-platform compatible (macOS/Linux)#8

Merged
jahooma merged 1 commit intoCodebuffAI:mainfrom
stephengibson12:fix-stat-cross-platform
Jul 23, 2025
Merged

Fix: make stat cross-platform compatible (macOS/Linux)#8
jahooma merged 1 commit intoCodebuffAI:mainfrom
stephengibson12:fix-stat-cross-platform

Conversation

@stephengibson12
Copy link
Contributor

@stephengibson12 stephengibson12 commented Jul 23, 2025

I'm using WSL2 / Ubuntu, which broke on the second run of start-codebuff.sh. The first run does the initial docker setup and doesn't touch the code that breaks.

DOCKERFILE_MTIME=$(stat -f %m "$SCRIPT_DIR/Dockerfile")

The stat command is implemented differently for BSD vs GNU, apparently.

Don't have a Mac so couldn't test it there, so this should be tested with two runs there, just to be sure.

@jahooma
Copy link
Contributor

jahooma commented Jul 23, 2025

Ooh, nice. Looks good to me, thanks!

@jahooma
Copy link
Contributor

jahooma commented Jul 23, 2025

And congrats on your first contribution, as well as THE first contribution to the codebuff-community! (At least that was unsolicited.)

@jahooma jahooma merged commit c323792 into CodebuffAI:main Jul 23, 2025
@stephengibson12
Copy link
Contributor Author

@jahooma Thanks. I code in isolation but figured I'd branch out. No pun intended lol Been focusing on coding again for ~6 months

Screenshot 2025-07-22 223606

@stephengibson12 stephengibson12 deleted the fix-stat-cross-platform branch July 23, 2025 05:39
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.

2 participants

Comments