-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
agda 2.5.1 #440
agda 2.5.1 #440
Conversation
Does that mean the old test is failing? |
@@ -43,9 +32,9 @@ class Agda < Formula | |||
end | |||
|
|||
option "without-stdlib", "Don't install the Agda standard library" | |||
option "without-malonzo", "Disable the MAlonzo backend" | |||
option "without-ghc", "Disable the GHC backend" |
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.
Need to add a deprecated_option
to migrate people over.
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.
OK.
Why would
|
My {
"used_options": [],
"unused_options": ["--without-stdlib", "--without-malonzo", "--without-emacs"],
"built_as_bottle": false,
"poured_from_bottle": false,
"time": 1461020063,
"source_modified_time": 1460785695,
"HEAD": "da34fba151ee33c1a2e14ab21ee0dc4ea451cc0f",
"stdlib": null,
"compiler": "clang",
"source": {
"path": "/usr/local/Library/Taps/homebrew/homebrew-core/Formula/agda.rb",
"tap": "homebrew/core",
"spec": "stable”
}
} I’m not sure why |
@mietek Did you add |
@MikeMcQuaid: I have now. |
@ilovezfs: I’ve rewritten the tests so that one feature is tested at a time. We now test that:
Both GHC backend tests run in a single Cabal sandbox that includes the |
The failure seems unrelated:
|
|
||
if build.with? "malonzo" | ||
if build.with? "ghc" |
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.
option "without-ghc", "Disable the GHC backend"
if build.with? "ghc"
depends_on "ghc"
else
depends_on "ghc" => :build
end
I think can instead be
depends_on "ghc" => :recommended
depends_on "ghc" => :build if build.without? "ghc"
which automatically gives you
--without-ghc
Build without ghc support
If the other message is preferred for some reason, you can make it
option "without-ghc", "Disable the GHC backend"
depends_on "ghc" => :recommended
depends_on "ghc" => :build if build.without? "ghc"
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.
Why?
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's 2 lines (or 3 if you don't like the default message) instead of 6.
- Using
:optional
/:recommended
is preferred and more idiomatic if the option name is also the name of the underlying formula. It used to bewithout-malonzo
andmalonzo
isn't a formula. Since it's nowghc
, the situation is different becauseghc
is a formula.
@mietek That's probably because your cabal_install dependency is build-time only. |
@ilovezfs: Oh, you’re right. Any ideas how to make |
@mietek This is probably a stupid question, but why is the option not to have the ghc backend useful other than that the |
@ilovezfs: The only effect of the |
There's no distinction at this time between a test time and run time dependency. One option might be to drag in |
I can see that's probably a bad idea though since
|
You’re right. Firstly, pulling in |
I have no objection to dragging in |
If I'm interpreting this correctly, the GHC backend is basically unusable without Moreover, I concur with @mietek: adding the relatively lightweight |
LOL. So I think we can do
|
To confirm — you are requesting that I change this: if build.with? "ghc"
depends_on "ghc"
depends_on "cabal-install"
else
depends_on "ghc" => :build
depends_on "cabal-install" => :build
end …to this: depends_on "ghc" => :recommended
if build.with? "ghc"
depends_on "cabal-install"
else
depends_on "ghc" => :build
depends_on "cabal-install" => :build
end I don’t think this is an improvement, but — here goes. |
I believe your latest commit correctly implemented the suggestion. |
This is not possible. I personally think it's worth just avoiding using build dependencies at test time. |
This is ready to merge. |
@mietek It seems that this doesn't build with ghc 8.0.1-rc3 unless I pass --without-emacs, so I'm wondering if we should either fix that now or make emacs optional instead of recommended since the ghc 8 release is imminent and we don't want this being broken at that point.
If you'd like to try it, here's the diff to get brew building ghc 8: |
@ilovezfs: I don’t think Agda is currently expected to support GHC 8 (agda/agda#1799). The Agda Implementors’ Meeting XXIII is underway, so we can expect fixes shortly. I’d rather not delay this update. |
@mietek Thank you for reporting that so quickly, and in the right place. I'm 👍 merging this as is since we can always change it to optional later if necessary when ghc 8 ships. |
Hmm that's weird, looking at the source code of |
@zmwangx Did you try it? I found it to be reproducible with 8.0.1-rc3 and not to occur with ghc-7.10.3b. |
Not I didn't, because I never enjoyed building GHC... |
if build.with? "malonzo" | ||
s += <<-EOS.undent | ||
Agda 2.5.1 includes new library management features. | ||
http://agda.readthedocs.org/en/stable/tools/package-system.html |
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.
Would still like this bit removed.
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.
Disappointing.
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.
Sorry, I thought I'd said that already and I've already explained that caveats are for Homebrew-specific information.
* Updates Agda to 2.5.1 and the Agda standard library to 0.12. * Removes temporary maintenance patches. * Renames the "without-malonzo" option to "without-ghc", following upstream change: agda/agda#1859 * Removes functionality relating to the removed FFI package: agda/agda-stdlib@86b4fe4 * Updates caveats for clarification following recent changes: https://github.com/agda/agda/blob/master/CHANGELOG#L52-121 * Updates and improves tests to test one feature at a time.
Thanks again @mietek and for your patience. |
without-malonzo
option towithout-ghc
, following upstream change:Replace 'MAlonzo' by 'GHC backend' in the --help option agda/agda#1859
agda/agda-stdlib@86b4fe4
https://github.com/agda/agda/blob/master/CHANGELOG#L52-121