While looking at a CI failure on the rubyzip gem, I found that an error
was generated from a line like this:
File.open(“data/generated/empty_chmod640.txt”, “w”) { |f| f.chmod(0640)
}
The error was: “RuntimeError: No such file or directory -
data/generated/empty_chmod640.txt”
The error was consistent in the test suite, but I was not able to
reproduce it outside of the test suite. A simple change fixed the
problem:
https://github.com/rubyzip/rubyzip/commit/b67675480d1c14d26a55aad080dcc8a44d86c5bc
Could this be a JRuby bug? Are there any known related issues?