Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

haha! tbh I needed _something_ to be able to track versions for debugging purposes once I had some real users, and I ended up just using the client `v${commit number}.{last 5 commit hash}`

Hope that answers it! thank you for checking out sqwok & have a nice day



It does, thanks.

I’ve always wondered, how does the commit hash get in to the actual version number? You don’t know the hash before you commit, so now to get the hash in to the public commit version you have to commit again, which changes the hash!


I'm guessing the build/deploy stage sets that up in the environment, so it's not actually committed in the repo.


yep that's it, it's created in the build stage and passed into the app!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: