Closed Bug 977366 Opened 10 years ago Closed 10 years ago

Allow 'make node_modules' to optionally use the git.mozilla mirror

Categories

(Firefox OS Graveyard :: Gaia, defect)

defect
Not set
normal

Tracking

(b2g-v1.3T fixed)

RESOLVED FIXED
Tracking Status
b2g-v1.3T --- fixed

People

(Reporter: jgriffin, Assigned: jgriffin)

References

Details

Attachments

(1 file)

We've set up a git.mozilla.org mirror of https://github.com/mozilla-b2g/gaia-node-modules for use in TBPL; we should update 'make node_modules' so that it optionally uses this, probably based on an ENV variable.
Comment on attachment 8382639 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/16678

Sending review over to Kevin because I am scared of bash and make (and he did this : )
Attachment #8382639 - Flags: review?(gaye) → review?(kgrandon)
Comment on attachment 8382639 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/16678

I do wish we had tarball support which would make this a bit cleaner. Should be good for now, thanks!
Attachment #8382639 - Flags: review?(kgrandon) → review+
I added a bunch of comments.

More generally, I think someone (probably Yuren and :ochameau) is owning the Makefile and should do the reviews for the Makefile.
Comment on attachment 8382639 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/16678

Right, that's probably true. Yuren should probably review this. Thanks!
Attachment #8382639 - Flags: review+ → review?(yurenju.mozilla)
Comment on attachment 8382639 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/16678

Makefile rule |modules.tar| should be used to produce modules.tar file, so we shouldn't add |git clone| on rule modules.tar.

I suggest use |?=| define NODE_MODES_SRC with default value "modules.tar" and use a if condition to decide download tar or clone from a git server

here is a sample for it
https://gist.github.com/yurenju/9319829

make sure you have an integration test case to verify it.
https://github.com/mozilla-b2g/gaia/blob/master/build/test/integration/build.test.js
Attachment #8382639 - Flags: review?(yurenju.mozilla)
you can use |make build-test-integration| to run it.
Assignee: nobody → jgriffin
Comment on attachment 8382639 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/16678

Review comments addressed, tests added!
Attachment #8382639 - Flags: review?(yurenju.mozilla)
Comment on attachment 8382639 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/16678

that's great, thank you! :D
Attachment #8382639 - Flags: review?(yurenju.mozilla) → review+
https://github.com/mozilla-b2g/gaia/commit/66101d5a3c8bbb269966cb1c59ac7464f46657ba
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Blocks: 979962
Depends on: 1033472
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: