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

reporter-web-app: Support bootstrapping NPM and Yarn #862

Merged
merged 1 commit into from
Sep 14, 2018

Conversation

fviernau
Copy link
Member

@fviernau fviernau commented Sep 13, 2018

NPM needs to be installed in order to bootstrap Yarn
since the Gradle Node plugin install Yarn via NPM. For
this installation to work the download flag needs to
be set.

Also for not nefatively affecting reproducibility of
build setting a fixed NPM version.

See also the related issue [2] and open pull request [1].

[1] srs/gradle-node-plugin#186
[2] srs/gradle-node-plugin#175


This change is Reviewable


// Installing NPM is needed for installing Yarn because
// the Gradle Node plugin install Yarn via NPM.
npmVersion = '6.4.0'
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't we use the latest 6.4.1?

Copy link
Member

Choose a reason for hiding this comment

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

@fviernau and I agreed to use 6.4.0 to align with what we currently use in .appveyor.yml and .travis.yml.

@@ -5,7 +5,11 @@ plugins {
node {
version = '8.11.4'
yarnVersion = '1.9.4'

// Installing NPM is needed for installing Yarn because
Copy link
Member

Choose a reason for hiding this comment

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

Commit message: Second paragraph is weird, what about: "Also set a fixed NPM version to ensure reproducible builds." Also it's a bit weird to have [2] before [1]. And nit: "Support" should be capitalized in the title for consistency with other commits.

Copy link
Member

Choose a reason for hiding this comment

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

More commit message nits: "... installs Yarn ...", "... to not negatively ..."

@sschuberth sschuberth changed the title reporter-web-app: fix bootstrapping NPM reporter-web-app: reporter-web-app: support bootstrapping NPM and Yarn Sep 13, 2018
// Installing NPM is needed for installing Yarn because
// the Gradle Node plugin install Yarn via NPM.
npmVersion = '6.4.0'
// Setting download flag is required for bootstrapping NPM
Copy link
Member

Choose a reason for hiding this comment

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

Missing dot at end of sentence.

@mnonnenmacher mnonnenmacher changed the title reporter-web-app: reporter-web-app: support bootstrapping NPM and Yarn reporter-web-app: Support bootstrapping NPM and Yarn Sep 13, 2018
@fviernau fviernau force-pushed the fix-npm-bootstrap branch 2 times, most recently from 4d758ab to d29babb Compare September 14, 2018 09:20
NPM needs to be installed in order to bootstrap Yarn
since the Gradle Node plugin installs Yarn via NPM,
see also [1] [2]. For this installation to work the
download flag needs to be set.

Also set a fixed NPM version for the reproducibility
of builds.

[1] srs/gradle-node-plugin#175
[2] srs/gradle-node-plugin#186
@fviernau fviernau merged commit ef965c1 into master Sep 14, 2018
@sschuberth sschuberth deleted the fix-npm-bootstrap branch September 14, 2018 12:07
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.

3 participants