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
cryfs: trigger bottle rebuild #35958
Conversation
This comment has been minimized.
This comment has been minimized.
Can we add a test that looks at what library this is linked against? |
c0ed21f
to
3246446
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work on the test!
Formula/cryfs.rb
Outdated
# wrong. For example there was an ABI incompatibility issue between the crypto++ version | ||
# the cryfs bottle was compiled with and the crypto++ library installed by homebrew to. | ||
Dir.mktmpdir do |basedir| | ||
Dir.mktmpdir do |mountdir| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could either of these be a plain mkdir
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be, but I think mktmpdir
is better because it automatically cleans up after the block is exited.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@smessmer Anything in test do
's working directory is also automatically cleaned up so these mktmpdir
are superfluous and can be replaced with mkdir
👍
Formula/cryfs.rb
Outdated
# the cryfs bottle was compiled with and the crypto++ library installed by homebrew to. | ||
Dir.mktmpdir do |basedir| | ||
Dir.mktmpdir do |mountdir| | ||
assert_match "Mounting filesystem", pipe_output("#{bin}/cryfs -f \"#{basedir}\" \"#{mountdir}\"", "password") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Can use
2>&1
to avoid printing error messages. - Can use single quotes to avoid needing to escape the
"
Formula/cryfs.rb
Outdated
assert_match "Mounting filesystem", pipe_output("#{bin}/cryfs -f \"#{basedir}\" \"#{mountdir}\"", "password") | ||
end | ||
end | ||
print("Note: A permission error in the previous line is expected and still counts as successful test run\n") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can remove this.
Thanks. I addressed your comments. Btw, there was a new upstream release 0.9.10. So instead of bumping the revision number, I switched to the new upstream release. |
@BrewTestBot test this please |
1bbd383
to
2b99542
Compare
CI fails with a "directory not empty" error message. Not sure how to fix this, maybe actually a bug in homebrew, see Homebrew/brew#4989 |
ok tests seem to have passed now, thanks. Can we merge this? |
@smessmer Can you remove the |
Installation failing on High Sierra with what looks like a Boost issue: https://jenkins.brew.sh/job/Homebrew%20Core%20Pull%20Requests/37186/version=high_sierra/testReport/junit/brew-test-bot/high_sierra/install_cryfs/ |
Reran it and it was fine 🎉. Thanks so much for your contribution! Without people like you submitting PRs we couldn't run this project. You rock, @smessmer! |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?This fixes #35947