Skip to content

More tests for convenience libraries and some bugfixes (#3257)#3264

Closed
ezyang wants to merge 6 commits intohaskell:masterfrom
ezyang:cabal-shake
Closed

More tests for convenience libraries and some bugfixes (#3257)#3264
ezyang wants to merge 6 commits intohaskell:masterfrom
ezyang:cabal-shake

Conversation

@ezyang
Copy link
Copy Markdown
Contributor

@ezyang ezyang commented Apr 1, 2016

No description provided.

ezyang added 5 commits March 31, 2016 21:24
This are currently failing because there are bugs which need to be
fixed.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
This comment is not yet implemented, will be the subject
of later patches.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Convenience libraries can have dependencies declared using
build-depends.  Unfortunately, these dependencies are special:
in particular, the version range is meaningless because they
always refer to the same package they were specified in.

So, this infelicity means that the solver has to explicitly
filter out these internal dependencies.  I also had to fix
validation to ignore these internal dependencies as well.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
It needs to be done afterwards, because we need to compute
the ABI hash as part of registration, which can't be done
unless all dependencies are registered, which could include
internal libraries.

This whole affair is very dodgy.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
@23Skidoo
Copy link
Copy Markdown
Member

23Skidoo commented Apr 1, 2016

/cc @kosmikus

-- There are two things to note:
--
-- 1. First, we eliminated the "local" dependencies foo-internal
-- and foo-helper. This are implicitly assumed to refer to "foo"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Typo: "This are".

@23Skidoo
Copy link
Copy Markdown
Member

23Skidoo commented Apr 1, 2016

LGTM.

BTW, can you add a note about convenience libraries to the changelog?

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
@ezyang ezyang mentioned this pull request Apr 1, 2016
@ezyang ezyang closed this Apr 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants