Skip to content
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

fix(gatsby-telemetry): Ensure we capture cli version even with older gatsby-cli #13087

Merged
merged 2 commits into from
Apr 11, 2019

Conversation

jamo
Copy link
Contributor

@jamo jamo commented Apr 3, 2019

This copies over the version metadata collection from gatsby-cli/src/createCli.js

Copy link
Contributor

@sidharthachatterjee sidharthachatterjee left a comment

Choose a reason for hiding this comment

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

Looks great! Thank you @jamo 👍

packages/gatsby-telemetry/src/telemetry.js Show resolved Hide resolved
@wardpeet wardpeet added the status: awaiting author response Additional information has been requested from the author label Apr 5, 2019
@jamo jamo added status: awaiting reviewer response A pull request that is currently awaiting a reviewer's response and removed status: awaiting author response Additional information has been requested from the author labels Apr 10, 2019
try {
const jsonfile = join(
require
.resolve(`gatsby-cli`) // Resolve where current gatsby-cli would be loaded from.
Copy link
Contributor

Choose a reason for hiding this comment

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

nice find! Let me test this 😄

@wardpeet
Copy link
Contributor

Seems to work on windows which means it works everywhere 😂

PS C:\Users\WardPeeters\Projects\tmp\starters-win> yarn develop
yarn run v1.15.2
$ gatsby develop
Captured event: {"installedGatsbyVersion":"2.3.3","gatsbyCliVersion":"2.5.3","eventType":"CLI_COMMAND_DEVELOP","sessionId":"1764fe90-5c4e-11e9-b4ec-47e7cc250396","time":"2019-04-11T11:36:48.326Z","machineId":"f9a0d0b0-4fbd-11e9-8674-c75bf48574c3","repositoryId":"pwd:7423156cafd3d0452d360b57de4d4f0017ff86eddce45f6d5a4adc0d068520be","componentId":"gatsby-cli","osInformation":{"nodeVersion":"v8.15.1","platform":"win32","release":"10.0.17763","cpus":"Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz","arch":"x64","ci":false},"componentVersion":"1.0.4"}

$ C:\Users\WardPeeters\Projects\tmp\starters-win\node_modules\.bin\gatsby --version
2.3.3
PS C:\Users\WardPeeters\Projects\tmp\starters-win> npx gatsby-cli develop
Captured event: {"installedGatsbyVersion":"2.3.3","gatsbyCliVersion":"2.5.6","eventType":"CLI_RAW_COMMAND_DEVELOP","sessionId":"8f677f80-5c4e-11e9-a0d9-bfaeaa5cd52f","time":"2019-04-11T11:40:09.595Z","machineId":"f9a0d0b0-4fbd-11e9-8674-c75bf48574c3","repositoryId":"pwd:7423156cafd3d0452d360b57de4d4f0017ff86eddce45f6d5a4adc0d068520be","componentId":"gatsby-cli","osInformation":{"nodeVersion":"v8.15.1","platform":"win32","release":"10.0.17763","cpus":"Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz","arch":"x64","ci":false,"docker":false},"componentVersion":"1.0.6"}

PS C:\Users\WardPeeters\Projects\tmp\starters-win> npx gatsby-cli --version
2.5.6

@wardpeet wardpeet merged commit b978db6 into master Apr 11, 2019
@wardpeet wardpeet deleted the fix-gatsby-version-collection branch April 11, 2019 11:43
DSchau pushed a commit that referenced this pull request Apr 15, 2019
…tal prototypes (#13368)

There is issue in one of dependency of currently used `asciidoctor` package version. Recommendation from `asciidoctor` maintainer was to bump package version ( asciidoctor/asciidoctor.js#651 (comment) ), which I did and tested using reproduction from #13087 and our `using-asciidoc` example.

fixes #13097
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: awaiting reviewer response A pull request that is currently awaiting a reviewer's response
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants