Title: Running 'make test' dies due to no .git when building from a .tar.gz · Issue #51 · github/git-sizer · GitHub
Open Graph Title: Running 'make test' dies due to no .git when building from a .tar.gz · Issue #51 · github/git-sizer
X Title: Running 'make test' dies due to no .git when building from a .tar.gz · Issue #51 · github/git-sizer
Description: If you follow these build instructions and run make test on one of the .tar.gz releases you get: $ make test; echo $? [...] Messages: command failed; output: "error: couldn't open Git repository: git rev-parse failed: fatal: not a git re...
Open Graph Description: If you follow these build instructions and run make test on one of the .tar.gz releases you get: $ make test; echo $? [...] Messages: command failed; output: "error: couldn't open Git repository: g...
X Description: If you follow these build instructions and run make test on one of the .tar.gz releases you get: $ make test; echo $? [...] Messages: command failed; output: "error: couldn't open Git repo...
Opengraph URL: https://github.com/github/git-sizer/issues/51
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Running 'make test' dies due to no .git when building from a .tar.gz","articleBody":"If you [follow these build instructions](https://github.com/github/git-sizer/blob/master/docs/BUILDING.md#build-using-make) and run `make test` on one of the `.tar.gz` releases you get:\r\n\r\n```\r\n$ make test; echo $?\r\n[...]\r\n Messages: command failed; output: \"error: couldn't open Git repository: git rev-parse failed: fatal: not a git repository (or any of the parent directories): .git\\n\\n\"\r\n[...]\r\nmake: *** [gotest] Error 1\r\n2\r\n```\r\n\r\nJust running `git init` in the build directory works around it, but I don't know how much this breaks the tests, if at all:\r\n\r\n```\r\n$ make test; echo $?\r\n[...]\r\nok github.com/github/git-sizer 0.123s\r\nok github.com/github/git-sizer/counts (cached)\r\n? github.com/github/git-sizer/git [no test files]\r\n? github.com/github/git-sizer/isatty [no test files]\r\n? github.com/github/git-sizer/meter [no test files]\r\n? github.com/github/git-sizer/sizes [no test files]\r\n0\r\n```\r\n\r\nSo now I do `git init` in my packaging script, but it would be neat if this worked out of the box.","author":{"url":"https://github.com/avar","@type":"Person","name":"avar"},"datePublished":"2018-11-16T09:31:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/51/git-sizer/issues/51"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2fe45aad-c173-feb7-91d9-1ca0d2c5d331 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D922:1A748E:91C16:CE926:697784AF |
| html-safe-nonce | beb94832bacf12f1233cad9f41cd7a77bfb11f2396601cd0a11543b9ae09faf7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTIyOjFBNzQ4RTo5MUMxNjpDRTkyNjo2OTc3ODRBRiIsInZpc2l0b3JfaWQiOiI0NTM1ODk5ODgzNDQ0ODY0MTc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 99e2a7673a96da3075a7e1b60a2e0df215c43ad9fe723912aecf84c3b92e7c6a |
| hovercard-subject-tag | issue:381516778 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/git-sizer/51/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b3ce8cf478324764667d2c5c1714704785db93d616ceff352d866a7ce135e0c6/github/git-sizer/issues/51 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b3ce8cf478324764667d2c5c1714704785db93d616ceff352d866a7ce135e0c6/github/git-sizer/issues/51 |
| og:image:alt | If you follow these build instructions and run make test on one of the .tar.gz releases you get: $ make test; echo $? [...] Messages: command failed; output: "error: couldn't open Git repository: g... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | avar |
| hostname | github.com |
| expected-hostname | github.com |
| None | fd37f8e74ecc49b700617ea694fa6d7b395b6c9a4b79c59b3014da220462ac69 |
| turbo-cache-control | no-preview |
| go-import | github.com/github/git-sizer git https://github.com/github/git-sizer.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 119228008 |
| octolytics-dimension-repository_nwo | github/git-sizer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 119228008 |
| octolytics-dimension-repository_network_root_nwo | github/git-sizer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 523f6485bbeeb9958ec03260b225e9183734585d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width