News for hackers. Stuff that matters.
Re:Mozilla sccache: ccache with cloud storage by phlip9 on Sunday December 24, 2023 @01:45PM (#38755575)
sccache only caches if builds are run from the same absolute path, so indeed different home dirs won't work
Re:Mozilla sccache: ccache with cloud storage by tentacleuno on Sunday December 24, 2023 @02:04PM (#38755731)
As a bystander, what would the reasoning be for doing this? I would have assumed that they'd hash each file and use that as a key in a lookup table.
Re:Mozilla sccache: ccache with cloud storage by sgammon on Sunday December 24, 2023 @02:33PM (#38756054)
In some languages, symbols are provided which evaluate to a file’s path or directory parent, so program behavior can vary even for the same content hash. That’s just one way paths can bleed in to violate hermeticity/correctness.
Re:Mozilla sccache: ccache with cloud storage by MereInterest on Sunday December 24, 2023 @02:35PM (#38756067)
It sounds like somebody assuming a docker build, where everybody’s build will use the same file path. It’s still a very silly restriction, because not everything occurs within docker.
Re:Mozilla sccache: ccache with cloud storage by sgammon on Sunday December 24, 2023 @03:10PM (#38756397)
It’s an unfortunate safety tradeoff to guarantee consistency. Better visibility into program behavior could fix it.