{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/2153","repository_url":"https://api.github.com/repos/commercialhaskell/stack","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/2153/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/2153/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/2153/events","html_url":"https://github.com/commercialhaskell/stack/issues/2153","id":155337689,"number":2153,"title":"stack \"errors\" when building package with benchmark that depends on itself","user":{"login":"RyanGlScott","id":2364661,"avatar_url":"https://avatars.githubusercontent.com/u/2364661?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanGlScott","html_url":"https://github.com/RyanGlScott","followers_url":"https://api.github.com/users/RyanGlScott/followers","following_url":"https://api.github.com/users/RyanGlScott/following{/other_user}","gists_url":"https://api.github.com/users/RyanGlScott/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanGlScott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanGlScott/subscriptions","organizations_url":"https://api.github.com/users/RyanGlScott/orgs","repos_url":"https://api.github.com/users/RyanGlScott/repos","events_url":"https://api.github.com/users/RyanGlScott/events{/privacy}","received_events_url":"https://api.github.com/users/RyanGlScott/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/type:%20bug","name":"type: bug","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/commercialhaskell/stack/milestones/6","html_url":"https://github.com/commercialhaskell/stack/milestones/P2:%20Should","labels_url":"https://api.github.com/repos/commercialhaskell/stack/milestones/6/labels","id":1191309,"number":6,"title":"P2: Should","description":"Arbitrary date chosen, just to get the milestones to order nicely","creator":{"login":"snoyberg","id":49415,"avatar_url":"https://avatars.githubusercontent.com/u/49415?v=3","gravatar_id":"","url":"https://api.github.com/users/snoyberg","html_url":"https://github.com/snoyberg","followers_url":"https://api.github.com/users/snoyberg/followers","following_url":"https://api.github.com/users/snoyberg/following{/other_user}","gists_url":"https://api.github.com/users/snoyberg/gists{/gist_id}","starred_url":"https://api.github.com/users/snoyberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoyberg/subscriptions","organizations_url":"https://api.github.com/users/snoyberg/orgs","repos_url":"https://api.github.com/users/snoyberg/repos","events_url":"https://api.github.com/users/snoyberg/events{/privacy}","received_events_url":"https://api.github.com/users/snoyberg/received_events","type":"User","site_admin":false},"open_issues":144,"closed_issues":213,"state":"open","created_at":"2015-07-02T18:20:49Z","updated_at":"2016-07-16T06:43:28Z","due_on":"2016-12-31T08:00:00Z","closed_at":null},"comments":3,"created_at":"2016-05-17T19:09:02Z","updated_at":"2016-07-16T09:58:20Z","closed_at":null,"body":"Originally discovered [here](https://github.com/iu-parfunc/sc-haskell/issues/7). Steps to reproduce:\r\n\r\n```\r\n$ stack unpack vector-binary-instances\r\nUnpacked vector-binary-instances-0.2.3.2 to /home/ryanglscott/Documents/Hacking/Haskell/vector-binary-instances-0.2.3.2/\r\n$ cd vector-binary-instances-0.2.3.2/\r\n$ stack init --resolver lts-5.16\r\nUsing cabal packages:\r\n- vector-binary-instances.cabal\r\n\r\nSelected resolver: lts-5.16\r\nInitialising configuration using resolver: lts-5.16\r\nTotal number of user packages considered: 1\r\nWriting configuration to file: stack.yaml\r\nAll done.\r\n$ stack bench --only-dependencies\r\n...\r\n$ stack bench                                                                             \r\nvector-binary-instances-0.2.3.2: benchmarks                                               \r\nvector-binary-instances-0.2.3.2: configure (bench)                                        \r\nsetup-Simple-Cabal-1.22.5.0-ghc-7.10.3: No benchmarks enabled. Did you                    \r\nremember to configure with '--enable-benchmarks'?                                         \r\nConfiguring vector-binary-instances-0.2.3.2...                                            \r\nvector-binary-instances-0.2.3.2: build (bench)\r\nPreprocessing library vector-binary-instances-0.2.3.2...\r\n[1 of 1] Compiling Data.Vector.Binary ( Data/Vector/Binary.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/Data/Vector/Binary.o )\r\nIn-place registering vector-binary-instances-0.2.3.2...\r\nPreprocessing benchmark 'benchmarks' for vector-binary-instances-0.2.3.2...\r\n[1 of 1] Compiling Main             ( benchmarks/Benchmarks.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/benchmarks/benchmarks-tmp/Main.o )\r\nLinking .stack-work/dist/x86_64-linux/Cabal-1.22.5.0/build/benchmarks/benchmarks ...\r\nCompleted 2 action(s).\r\n\r\n--  While building package vector-binary-instances-0.2.3.2 using:\r\n      /home/ryanglscott/.stack/setup-exe-cache/x86_64-linux/setup-Simple-Cabal-1.22.5.0-ghc-7.10.3 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.22.5.0 bench benchmarks\r\n    Process exited with code: ExitFailure 1\r\n```\r\n\r\n`stack` seems to be confused about `vector-binary-instances`'s benchmarks, for the reason that (I assume) its benchmarks transitively depends on `vector-binary-instances` itself. It still appears to build correctly, but it exits with an error code and doesn't actually run the benchmarks."},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/233123066","html_url":"https://github.com/commercialhaskell/stack/issues/2153#issuecomment-233123066","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/2153","id":233123066,"user":{"login":"sjakobi","id":3664523,"avatar_url":"https://avatars.githubusercontent.com/u/3664523?v=3","gravatar_id":"","url":"https://api.github.com/users/sjakobi","html_url":"https://github.com/sjakobi","followers_url":"https://api.github.com/users/sjakobi/followers","following_url":"https://api.github.com/users/sjakobi/following{/other_user}","gists_url":"https://api.github.com/users/sjakobi/gists{/gist_id}","starred_url":"https://api.github.com/users/sjakobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjakobi/subscriptions","organizations_url":"https://api.github.com/users/sjakobi/orgs","repos_url":"https://api.github.com/users/sjakobi/repos","events_url":"https://api.github.com/users/sjakobi/events{/privacy}","received_events_url":"https://api.github.com/users/sjakobi/received_events","type":"User","site_admin":false},"created_at":"2016-07-16T09:58:20Z","updated_at":"2016-07-16T09:58:20Z","body":"> As unpleasant as this is, setting the priority at P2 because there's a direct work-around: stack exec my-bench-name. You can build without having it exit with failure via stack build :my-bench-name --no-run-benchmarks or stack build --bench --no-run-benchmarks\r\n\r\nThat doesn't seem to work because `my-bench-name` isn't on the PATH. Is there a better workaround than digging into `.stack-work` to find the benchmark executable?"}}
{"actor":{"display_login":"sjakobi"}}