Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

haskell: fix empty flags build failures #49425

Closed
wants to merge 1 commit into from

Conversation

ilovezfs
Copy link
Contributor

Fixes a regression introduced by #47950 in 9e3ee3e causing build
failures with the error

cabal: The file does not exist ''.

This will occur whenever the optional :flags key isn't in the options
hash passed to install_cabal_package.

Fixes a regression introduced by Homebrew#47950 in 9e3ee3e causing build
failures with the error

  cabal: The file does not exist ''.

This will occur whenever the optional :flags key isn't in the options
hash passed to install_cabal_package.
@ilovezfs
Copy link
Contributor Author

@MikeMcQuaid @DomT4 This regression causes nearly every Haskell build to fail :)

@@ -81,7 +81,7 @@ def install_cabal_package(*args)
end

args_and_flags = args
args_and_flags << flags
args_and_flags << flags unless flags.empty?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we prefer this, or flags.strip.empty?, or something else?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unless flags.empty? seems fine to me, personally.

@MikeMcQuaid
Copy link
Member

Thanks again @ilovezfs!

@ilovezfs ilovezfs deleted the haskell_empty_flags branch February 26, 2016 10:12
@Homebrew Homebrew locked and limited conversation to collaborators Jul 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants