Commit Graph

9053 Commits

Author SHA1 Message Date
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
aa8e237194 remove redundant _recomputeEffectiveLocalPackages
(from initialize)

Also, simplify unbuilt logic and ensure that some more data structures
are cleared on refresh.
2014-08-14 16:38:25 -07:00
David Glasser
5c5c5308de missed one 2014-08-14 16:37:47 -07:00
David Glasser
44bcae916d release metadata is in official only
The point of the other catalogs is to allow local packages to override
server packages. This has nothing to do with releases. So rather than
keep release metadata in memory multiple times and force developers to
wonder "what's the different between catalog.complete.getReleaseTrack
and catalog.official.getReleaseTrack?", now it really just only exists
on catalog.official.
2014-08-14 16:24:16 -07:00
David Glasser
924195b224 app versions bump, grr 2014-08-14 16:17:00 -07:00
David Glasser
29357964dc Comment about nodeModulesDirectories structure 2014-08-14 16:15:23 -07:00
David Glasser
401cee2ef6 Lazily load constraint-solver instead of its mori
This should be a performance win (no need to load constraint-solver
unless you actually need to use it!), and it's what I wanted to do
initially instead of lazily loading mori, but it wasn't feasible with
the old super-recursive catalog.

This fixes an issue where running 'curmeteor rebuild' twice (!) died the
second time with a "Can't load npm module 'mori'" error. This is because
uniload (when run from a checkout) sets up Npm.require to read directly
from PACKAGE/.build.PACKAGE/npm/node_modules, which might get deleted
later in the process!  There are some complex and maybe slow ways to
resolve this general issue (copy the node_modules somewhere else?) but
for now, the easiest way to avoid the issue is just to load Npm modules
immediately inside packages which need to be uniloaded.
2014-08-14 16:12:05 -07:00
David Glasser
cf17ef3bf4 some further catalog/uniload cleanup
- The checkout catalog.uniload now does not uniload a resolver, and
  instead just has a trivial implementation of resolveConstraints.
  (The 'built' catalog.uniload already didn't use the resolver.)

- catalog.complete.resolveConstraints now throws an error if there's
  no resolver; this is OK, because creating the resolver now only
  uses the distinct catalog.uniload, so there's no recursion issue.

- don't record version dependencies in packages during uniload (this
  protects against using release.current before it is initialized)

- PackageLoader should never download packages during uniload (this
  protects against using catalog.uniload.isLocalPackage before it is
  initialized)
2014-08-14 14:29:18 -07:00
David Glasser
a9db15a9e6 vbump for 0.9.0-rc8 release/METEOR-CORE@0.9.0-rc8 2014-08-14 12:02:08 -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
e3771dd098 add an XXX about a minor inefficiency 2014-08-13 18:33:32 -07:00
David Glasser
2a598ef56c vbump rc7 release/METEOR-CORE@0.9.0-rc7 2014-08-13 18:15:47 -07:00
David Glasser
c9488c74d0 versions update 2014-08-13 18:11:46 -07:00
David Glasser
925758603e avoid reentrant complete refreshes 2014-08-13 18:11:46 -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
2755f95bb6 Move uniload package list to uniload.js
Actually verify that uniloaded packages are in the list. Add missing
'ejson'. Remove (ah well) test that relies on ability to uniload an app
package (which shouldn't work anyway, but it would be nice to test
uniload Assets...)
2014-08-13 18:11:46 -07:00
David Glasser
ebab3ec902 don't run git if there's a colon 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
b6955a3899 Move towards non-singleton catalog.complete
We're going to make uniload use a different flavor of "complete" catalog
soon.  So we need to reduce the number of singleton-ish references to
it.

Also, we need one PackageCache per catalog, so stop it from being a
singleton too.
2014-08-13 18:11:46 -07:00
ekatek
9a1cb5d296 maybe filter out old versions in show too 2014-08-13 20:48:28 -04:00
Matthew Arbesfeld
c9476a350f Fix typo in autoupdate and bump autoupdate package version. 2014-08-13 17:36:12 -07:00
Slava Kim
4e37f90a35 Bump the notification about latest used dev_bundle 2014-08-13 16:12:03 -07:00
ekatek
25328f1298 init options if blank 2014-08-13 19:00:16 -04:00
David Glasser
4ac78a3646 Move DEFAULT_TRACK to catalog module
It's a constant, so no need to have to think "hmm, I wonder if I should
be writing catalog.official.DEFAULT_TRACK or
catalog.complete.DEFAULT_TRACK?"
2014-08-13 15:39:03 -07:00
ekatek
dfd1fbcb22 be more tolerant of unknown keys and some cosmetics 2014-08-13 17:45:27 -04:00
ekatek
f9131da440 some safety cosmetics around meteor create --package 2014-08-13 17:45:27 -04:00
Avital Oliver
aff7dfdb50 Record package usage on meteor bundle
Also eliminated arguments that weren't used anywhere,
and removed an XXX comment that was false (recordPackages
doesn't use buildmessage to report connection failures)
2014-08-13 13:57:08 -07:00
ekatek
889cc75a1d when updating an app that runs from checkout, default to default release track 2014-08-13 16:56:42 -04:00
David Glasser
6839b6c6b9 todos version bump
(is this part of the release process? should it be? should we even store
these files?)
2014-08-13 13:27:51 -07:00
David Glasser
390f449fe6 20 lines of history rarely shows whole stacktrace 2014-08-13 13:27:51 -07:00
ekatek
c671555cfe show-broken flag 2014-08-13 15:56:04 -04:00
ekatek
a152d97bec help and tests for show 2014-08-13 13:18:20 -04:00
ekatek
f7179bec65 implement the --show command 2014-08-13 13:13:40 -04:00
David Glasser
9a92c6d0d4 bootstrapped releases should be recommended 2014-08-12 16:59:15 -07:00
David Glasser
8d204f5510 add missing capture for make-bootstrap-tarballs 2014-08-12 16:37:19 -07:00
David Glasser
adb3a65b96 version bumps for 0.9.0-rc6 release/METEOR-CORE@0.9.0-rc6 2014-08-12 16:27:51 -07:00
David Glasser
4378d9f5d0 include a backtrace for "got open from inactive" 2014-08-12 16:24:57 -07:00
David Glasser
0822033ca5 Tell resolver about ECVs of overridden versions
Otherwise trying to use a package with constraint "livedata@1.0.0" when
you are loading livedata 1.0.1 from a local package will fail.
2014-08-12 15:56:24 -07:00
David Glasser
66f21a64a2 add newline to identifier file 2014-08-12 14:57:36 -07:00
David Glasser
436f29ec9f move identifier .gitignore to a higher level
don't copy identifier file, instead of deleting it later. also, make
sure to skip an identifier file in the skel directory if one gets there somehow.
2014-08-12 14:54:56 -07:00
ekatek
01b0b0ebd4 adding versions files to example apps; making sure we don't create example apps with example identifiers by accident 2014-08-12 14:46:57 -04:00
David Glasser
3656356f22 test for breaking/fixing package.js 2014-08-11 17:59:15 -04: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
Matthew Arbesfeld
c6aa178f22 Fix typo in Autoupdate.newClientAvailable 2014-08-10 17:35:56 -07:00
Matthew Arbesfeld
1f6f15dc20 Fix autoupdate in cases where Autoupdate.autoupdateVersion is set.
If Autoupdate.autoupdateVersion is set outside of the Autoupdate
package, we wouldn't notify the client of the new version. This
patch simplifies the updating logic by only having one document
per version type.
2014-08-10 17:27:22 -07:00
David Glasser
a3e1ed79ff Print something better than [Object object]
If we ever load javascript (uniload load or package.js parse) outside of
a buildmessage job and there's a syntax error, FancySyntaxError gets
thrown instead of properly processed. Now, we shouldn't do that (we
should only load JS inside a buildmessage job!) but our codebase isn't
currently up to that standard, so at least ensure that there's some
level of useful syntax error (albeit with an ugly internal stack trace
attached) in this case.
2014-08-08 10:30:22 -07:00
David Glasser
4d1f7b58d0 missing newline release/METEOR-CORE@0.9.0-rc5 2014-08-08 00:30:36 -07:00