Skip to content

Change dist-newstyle layout from build/pid to build/ipkgid. #3652

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

Closed
wants to merge 1 commit into from

Conversation

ezyang
Copy link
Contributor

@ezyang ezyang commented Aug 1, 2016

Sorry, all you folks who have finger-macroed
dist-newstyle/build/pkg-1.0; the format will now
be dist-newstyle/build/pkg-1.0-inplace (or perhaps
even further mangled.) Although "inplace" is seemingly
redundant, it won't be when we build components individually
(build/pkg-1.0-inplace-exename) where each component needs
a separate dist-directory. If we change our inplace
identifiers to be more detailed (see #3343) then it
permits inplace builds to handle all situations where
package identifiers do not sufficiently disambiguate.

Signed-off-by: Edward Z. Yang [email protected]

Sorry, all you folks who have finger-macroed
dist-newstyle/build/pkg-1.0; the format will now
be dist-newstyle/build/pkg-1.0-inplace (or perhaps
even further mangled.)  Although "inplace" is seemingly
redundant, it won't be when we build components individually
(build/pkg-1.0-inplace-exename) where each component needs
a separate dist-directory.  If we change our inplace
identifiers to be more detailed (see haskell#3343) then it
permits inplace builds to handle all situations where
package identifiers do not sufficiently disambiguate.

Signed-off-by: Edward Z. Yang <[email protected]>
@mention-bot
Copy link

@ezyang, thanks for your PR! By analyzing the annotation information on this pull request, we identified @dcoutts and @BardurArantsson to be potential reviewers

@dcoutts
Copy link
Contributor

dcoutts commented Aug 2, 2016

We should think a bit about how to delete stuff that's no longer needed. We already have this problem when changing version, and it's only going to get worse with this patch and with other distinctions we'd like to make (e.g. building the same package at the same time with two compilers)

@23Skidoo
Copy link
Member

23Skidoo commented Aug 4, 2016

Code looks fine, but the commit message should mention that the "-inplace" bit refers only to local source dir packages, and in general one gets "pkgid-1.0-$hash". The change probably also warrants a line in the changelog.

@ezyang
Copy link
Contributor Author

ezyang commented Aug 5, 2016

Punting this patch in favor of a better one, which will qualify by compiler and arch as well.

@ezyang ezyang closed this Aug 5, 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.

4 participants