Commit Graph

104 Commits

Author SHA1 Message Date
David Glasser
f7c6f505ac Never springboard to a red pill 2014-08-25 22:49:32 -07:00
ekatek
b29a4cc439 more detaled wip on name coming from package.js 2014-08-19 12:32:16 -07:00
David Glasser
98b2885e85 Revert "Upgrade Node to 0.10.30. Fix npm bug again."
This reverts commit 56ff54b085.
2014-08-15 07:21:24 -07:00
David Glasser
987b5dd42d Merge branch 'upgrade-node-fix-npm' into devel 2014-08-14 11:41:01 -07:00
David Glasser
9c1afcf0b9 Unbreak springboarding, oops. 2014-08-14 11:34:27 -07:00
David Glasser
56ff54b085 Upgrade Node to 0.10.30. Fix npm bug again. 2014-08-14 10:15:47 -07:00
David Glasser
7743a55bba Use official catalog for springboarding
Read it into memory at initialize time
2014-08-13 18:11:46 -07:00
David Glasser
f946ff9054 uniload from checkout uses separate catalog 2014-08-13 18:11:46 -07:00
David Glasser
9e55a23541 replace uniloadDir hack with BuiltUniloadCatalog
this only affects built meteor for now
2014-08-13 18:11:46 -07:00
David Glasser
64d939acb2 Add a lot more buildmessage captures
Many of these (mostly in top level commands in commands-packages.js) are
not super well thought out: they use a new "doOrDie" helper to run some
function in a capture and exit if there are any messages.  We really
need to get a little more thoughtful about the big picture of error
handling (combining "build" errors, network errors, catalog errors,
etc). But this at least allows the addition of more buildmessage
assertions.

At the very least, this ensures that if you edit a package.js in a local
package while "meteor run" is running, that instead of crashing the tool
it properly shows the buildmessage and lets you fix the issue.
2014-08-11 17:06:28 -04:00
David Glasser
671c82e618 Print package downloads except background updater
Before, there were some random contexts (like 'test-packages') which
didn't print downloads. Now, the default is printing, and the exception
is the automatic background updater.

(Some of these bulk contexts should probably set silent and print their
own progress bar.  And maybe even do paralellism...)

Generally clean up the tropohouse.maybeDownloadPackageForArchitectures
interface. Change it to take options, remove the vestigial return
value (though really, there needs to be better error handling...)
2014-08-07 16:27:23 -07:00
David Glasser
92cf32a49a don't break running from checkout 2014-08-06 16:05:34 -07:00
David Glasser
215872fea2 speed up legacy springboarding
after the first time you springboard to a legacy release, don't refresh
the catalog before springboarding
2014-08-06 16:02:33 -07:00
David Glasser
7d05640ea0 Make buildmessage fiber-aware
Port a simplified version of Meteor.EnvironmentVariable and
Meteor.bindEnvironment to fiber-helpers.js to deal with this.

Identify uses of fiberHelpers.inFiber and switch them to either
fiberHelpers.bindEnvironment (if the callback they are wrapping is
semantically "part of" the context that creates the callback) or
fiberHelpers.inBareFiber (otherwise).

Without this, concurrency was causing the wrong buildmessage message
sets and jobs to be active when builds yielded.
2014-08-04 19:03:05 -07:00
David Glasser
06a7dc90b5 Add many buildmessage.capture/assertInCapture
Moving towards a world where all things that might invoke buildmessage.error are
encouraged to be in a buildmessage.capture.

This commit is the answer to the question "how many small changes need to be
made to add buildmessage.assertInCapture to PackageCache.loadPackageAtPath?"

Next steps include:
 - Making catalog.resolveConstraints ALWAYS buildmessage.assertInCapture
   (not just when ignoreProjectDeps isn't passed)
 - Then changing resolveConstraints to complain using buildmessage
 - Removing the process.exit(1) in _ensureDepsUpToDate
 - Adding a more structured way to ensure that most commands
   call _ensureDepsUpToDate at an unsurprising location
2014-07-30 22:16:21 -07:00
Avital Oliver
9afd6f4cf9 A first pass on some package command error messages 2014-07-24 14:02:47 -07:00
ekatek
8bb675c0b6 cleaning up some tests to run from release 2014-07-17 15:41:39 -07:00
David Glasser
e6328a094f Make sure package you are publishing is in catalog
Otherwise tests won't work
2014-06-30 16:53:42 -07:00
David Glasser
499ca1ff23 Extra comment about catalog initiatialization 2014-06-30 16:53:42 -07:00
ekatek
7d9a2ff6f3 put some try/catch blocks around maybeDownloadPackageForArchitectures. Not sure that this is the best plan? 2014-06-25 22:44:13 -07:00
David Glasser
ee462d49b7 resolve paths in $PACKAGE_DIRS 2014-06-25 22:16:25 -07:00
David Glasser
98bd2895fa add more text around local package init failure
text is the same used pre-packaging
2014-06-23 22:24:44 -07:00
David Glasser
5a85e2f24c Merge branch 'devel' into packaging
Conflicts:
	tools/bundler.js
	tools/tests/login.js
	tools/unipackage.js
2014-06-23 14:48:21 -07:00
David Glasser
2e5adc2659 fix autoupdate test
also fixes a bunch of other stuff like:

- parseStack markTop works again (so you get the right line numbers in
  self-test)

- you can (with appropriate env var) run apps with NO PACKAGES at
  all (even ctl)

- more consistently refer to METEOR-CORE@ releases as "Meteor 1.2.3"
2014-06-17 14:26:29 -07:00
David Glasser
d083f4aaf6 change --offline-catalog to $OFFLINE_CATALOG 2014-06-17 09:40:59 -07:00
Emily Stark
1180597f06 bump dev bundle; upgrade node 2014-06-16 18:17:21 -07:00
ekatek
a710408b1c correct update semantics with release --explicit 2014-06-11 22:40:07 -07:00
David Glasser
1e011e1ae9 run catalog initFromPackageDir in buildmessage
gives you better errors when local packages are buggy
2014-06-11 17:37:04 -07:00
David Glasser
f66e357353 allow springboarding to pre-tropohouse releases! 2014-06-11 17:12:43 -07:00
David Glasser
d3ca5b0497 print when downloading packages in foreground
would rather have a progress bar but that involves restructuring the
download code and that should wait until we rename builds or something
2014-06-11 14:41:46 -07:00
ekatek
41800b2dbf moving packaging commands to their own file, beggining of the great command reorg 2014-06-11 12:27:31 -07:00
David Glasser
cbf0850ca7 fix 'meteor update' on track with none recommended 2014-06-09 14:04:37 -07:00
ekatek
5ebbbdbc63 merging packaging into uvf 2014-05-28 13:26:48 -07:00
ekatek
b97f7c5a76 renamed some catalog variables, more cleanup around catalog 2014-05-27 16:07:43 -07:00
ekatek
5f10cb37a2 no more bootstrap dirs 2014-05-25 21:44:09 -07:00
ekatek
9e04e2dc35 unified versions wip two 2014-05-23 14:07:48 -07:00
ekatek
6f3504a2d3 project refactoring, wip 1 2014-05-21 15:42:12 -07:00
David Glasser
84e7342e82 meteor update should keep you on track 2014-05-20 17:08:44 -07:00
David Glasser
8bc9733645 try to update to different things 2014-05-20 11:51:46 -07:00
David Glasser
3d3ce33d32 be more consistent about release track vs name 2014-05-19 19:57:29 -07:00
David Glasser
22efb24606 use tool record in unipackage.json for springboard 2014-05-19 19:57:28 -07:00
David Glasser
9146cf3c76 two partial fixes 2014-05-19 18:00:31 -07:00
Emily Stark
9e3d6fc5cf Merge branch 'package-stats' into packaging
Conflicts:
	tools/commands.js
2014-05-13 13:43:48 -07:00
David Glasser
ce73d8855b Make tropohouse a class
The old singleton is now called tropohouse.default
2014-05-12 18:05:13 -07:00
David Glasser
de2a13a99f server catalog
have two separate catalogs, one for "i want to know what's on the server
even if it's overridden by local packages", one for "what do i have
available to build with"
2014-05-12 17:30:15 -07:00
David Glasser
e4000c6808 Merge branch 'devel' into packaging
Conflicts (around utils.quotemeta):
	tools/packages.js
	tools/utils.js
2014-05-12 17:06:11 -07:00
Avital Oliver
332e531a98 WIP: App identifier in APP_DIR/.meteor/identifier 2014-05-08 12:07:03 -07:00
Felix Rabe
d22a10cf1c Typo 2014-05-07 17:55:07 -07:00
David Glasser
9d70ff64c9 springboard almost works
springboarding happens infinitely because of build ids

have to manually bootstrap a tropohouse

fixed some other things:

 - store package server token in correct domain
 - copy files (eg packages pre-publish) with +x flags
 - catalog.getReleaseTrack works
 - don't pass release to uniload (Meteor.release will always
   end up 'UNILOAD')
 - fix building meteor-tool again
 - stop supporting apps without .meteor/release
 - merging unipackages with tools works

springboarding to warehouse releases totally not supported
2014-05-05 19:18:34 -07:00
David Glasser
f2e2a781cc Update Node to 0.10.28 which includes our npm fix 2014-05-02 10:59:37 -07:00