Skip to content

Log package hash inputs file and contents / regression test for #6906 - #7759

Merged
mergify[bot] merged 10 commits into
haskell:masterfrom
jneira:log-hash-inputs
Oct 18, 2021
Merged

mergify[bot] merged 10 commits into
haskell:masterfrom
jneira:log-hash-inputs

Conversation

@jneira

@jneira jneira commented Oct 18, 2021

Copy link
Copy Markdown
Member

Example of new output including package hash file creation and its contents:

creating
D:\cs2\ghc-8.6.5\incoming\new-13688\cs2\ghc-8.6.5\issue6906-0-676b6bdd8037cf9b726f4f7ca0e541f97bbfe790\bin
creating
D:\cs2\ghc-8.6.5\incoming\new-13688\cs2\ghc-8.6.5\issue6906-0-676b6bdd8037cf9b726f4f7ca0e541f97bbfe790
creating D:\cs2\ghc-8.6.5\incoming\new-13688\cs2\ghc-8.6.5
creating D:\cs2\ghc-8.6.5\incoming\new-13688\cs2
creating D:\cs2\ghc-8.6.5\incoming\new-13688\cs2\ghc-8.6.5
creating
D:\cs2\ghc-8.6.5\incoming\new-13688\cs2\ghc-8.6.5\issue6906-0-676b6bdd8037cf9b726f4f7ca0e541f97bbfe790
creating
D:\cs2\ghc-8.6.5\incoming\new-13688\cs2\ghc-8.6.5\issue6906-0-676b6bdd8037cf9b726f4f7ca0e541f97bbfe790\bin
Installing executable dist\build\issue6906\issue6906.exe to
D:\cs2\ghc-8.6.5\incoming\new-13688\cs2\ghc-8.6.5\issue6906-0-676b6bdd8037cf9b726f4f7ca0e541f97bbfe790\bin\issue6906.exe
creating
D:\cs2\ghc-8.6.5\incoming\new-13688\cs2\ghc-8.6.5\issue6906-0-676b6bdd8037cf9b726f4f7ca0e541f97bbfe790
creating file with the inputs used to compute the package hash:
D:\cs2\ghc-8.6.5\incoming\new-13688\cs2\ghc-8.6.5\issue6906-0-676b6bdd8037cf9b726f4f7ca0e541f97bbfe790\cabal-hash.txt
Package hash inputs:
> pkgid: issue6906-0
> component: ComponentExe (UnqualComponentName "issue6906")
> src: b812ce34d1d6b8ed44807c8c8c3c4a97634ddc980ef40f09b2406cca1f6b9885
> pkg-config-deps:
> deps: base-4.12.0.0
> compilerid: ghc-8.6.5
> platform: x86_64-windows
> stripped-exe: False
> debug-info: 0
> extra-lib-dirs: bar bar
> extra-include-dirs: foo foo

@jneira
jneira requested review from gbaz and phadej October 18, 2021 07:08
@jneira jneira changed the title Log package hash inputs file and contants and regression test for #6906 Log package hash inputs file and contents / regression test for #6906 Oct 18, 2021
@jneira

jneira commented Oct 18, 2021 •

Copy link
Copy Markdown
Member Author

Note the funny duplication and lack of ordering of the preexisting log:

creating D:\cs2\ghc-8.6.5\incoming\new-13688\cs2\ghc-8.6.5
creating D:\cs2\ghc-8.6.5\incoming\new-13688\cs2
creating D:\cs2\ghc-8.6.5\incoming\new-13688\cs2\ghc-8.6.5

@emilypi emilypi left a comment

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.

A changelog entry would be 👍 thanks @jneira

@jneira

jneira commented Oct 18, 2021 •

Copy link
Copy Markdown
Member Author

A changelog entry would be +1 thanks @jneira

i hope the one added in the follow up #7753 with b3ebb00, which also mentions this one could work

@Mikolaj

Mikolaj commented Oct 18, 2021

Copy link
Copy Markdown
Member

Reviewing...

@Mikolaj Mikolaj left a comment

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.

TDD at its best.

@jneira

jneira commented Oct 18, 2021

Copy link
Copy Markdown
Member Author

TDD at its best

Well i did the fix before the tests but only the pr id would peach it 😉

@jneira jneira added squash+merge me Tell Mergify Bot to squash-merge and removed attention: needs-review labels Oct 18, 2021
@mergify
mergify Bot merged commit 980a532 into haskell:master Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

squash+merge me Tell Mergify Bot to squash-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants