Commit Graph

12486 Commits

Author SHA1 Message Date
David Glasser
0daffe9bd8 Remove duplicate code
Duplication was introduced at merge c78e04645d.  Commit
ccc2526 (right-hand side of merge) moved this code from the bottom to
the middle.  Commit 21411b4 added a newline at the end of the file,
which made this a conflicted merge; the merge conflict was not resolved
properly.

Fixes #3208.
2015-01-07 17:14:01 -08:00
David Glasser
0b996ea907 Be more explicit that CSS files are always merged
Fixes #2812.
2015-01-07 17:10:13 -08:00
David Glasser
6f7636b4e6 Document build --architecture
Fixes #3093.
2015-01-07 17:07:41 -08:00
David Greenspan
e072382438 Kill PV.parseVersionConstraint
It parses “=1.0.0” but not “=1.0.0 || 2.0.0”.  It shouldn’t be a public thing (and is never used publicly).

There should be only two things: versions and constraints.  A value that can legally be “=1.0.0” is not a version, it is a constraint (and yet we still call it versionString in a few places).  A value that can be “=1.0.0” but not “1.0.0 || 2.0.0” is not a constraint; it is at best a rare creature called something like a “simple constraint.”  We may expand the syntax of constraints again in the future, and we can’t have N things called a “constraint.”
2015-01-07 16:15:10 -08:00
David Greenspan
a559d708ab Kill “removeBuildIDs” option to parseConstraint
It was only used in one place in resolver.js.  If the semantics of constraints are that buildIDs are ignored, that should be implemented when interpreting a constraint, not parsing it.  We don’t use buildIDs ourselves anymore, so it’s rather theoretical, but we’ve always stripped them out of constraint strings so it’s not even clear why we allow them at all — ie. why we are willing to parse “=1.0.0+foo” as a valid constraint and then throw away the “+foo”.

Bonus: One less place where we conflate two different options objects (utils.parseConstraint and PV.parseConstraint).
2015-01-07 15:52:06 -08:00
David Greenspan
9b6087a099 PVP: Add a test 2015-01-07 15:40:38 -08:00
David Greenspan
259f90bc5a Make PVP able to parse a version (and work on client)
Despite the name “package-version-parser,” PVP didn’t really provide a way to parse a package version.  With this change, if you want to get the minor version of “1.2.3_4”, for example, you can just write `PV.parse(“1.2.3_4”).minor`.  This simplifies the internals of PVP as well.

When you parse a version, you now get an instance of PackageVersion with a documented set of fields.

Also, make PVP work on the client.  When called directly from the tool, semver is loaded the same way as before.  When PVP is used as a package, it uses a copy of semver v4.1.0 kept inside the package.

This change is intended to be 100% behavior-preserving.
2015-01-07 15:17:30 -08:00
David Glasser
77ca0fe524 localmarket: Use clearer variable name
The session variable didn't mean "show an issue", it meant "allow an
issue, if one exists, to be shown". Describing it as "ignore an issue
that exists" seems more direct to me.

Addresses #3031.
2015-01-07 15:14:35 -08:00
Ben Newman
2ba39ce96a Make arc amend work.
This command is useful for updating commit messages after submitting a
diff, or after receiving a final review.
2015-01-07 14:42:53 -05:00
Emily Stark
3c1fb59826 update .arcconfig to new phabricator install 2015-01-07 10:59:25 -08:00
David Glasser
096df9d62d Refactor parent pid check; drop --keepalive
This commit moves parent pid process from the webapp package to the boot
script. This means that daemonized apps without webapp will also exit
when the runner exits, if run from the runner. (For example, several
self-tests such as 'autoupdate' no longer leak node processes.) This is
controlled via the $METEOR_PARENT_PID environment variable instead of
from command line arguments, in order to make fewer assumptions about
how Meteor apps process arguments.

This also drops the old --keepalive support (which already has stopped
being used by the dev mode runner or any MDG deployment platforms).
Neither --parent-pid nor --keepalive were documented beforehand, and
--keepalive was already deprecated before 1.0.

These flags used to also incidentally trigger printing the LISTENING
line; this is now controlled by $METEOR_PRINT_ON_LISTEN.

Fixes #3315.
2015-01-05 15:48:32 -08:00
David Glasser
263ca9a69d Mention package name in publish jobs
Specifically, this means that errors during publish-release
--from-checkout can include the package name, since buildmessage errors
only mention the innermost job name.  (It's more important for
publish-release's errors to include the package name than for publish,
since for publish you presumably know what package you're publishing
anyway.)

Fixes #3323.
2015-01-05 14:59:54 -08:00
David Glasser
ddd2fe8e91 Make 'pretty: true' to the default for commands
It was already set for most common commands, and was unnecessarily not
set for others.

The following commands are remaining "pretty: false":

- Commands that just print machine-parseable text: --version, --arch,
  admin members (without --add or --remove), mongo --url,
  authorized (without --add or --remove), whoami, list-organizations, list-sites
- Commands that just switch over to another codebase's interactive
  command: mongo without --url, admin get-machine, shell

The following commands used to be implicitly "pretty: false" and now
will be pretty:

- A bunch of troposphere admin commands: set-banners, recommend-release,
  change-homepage, set-unmigrated, set-latest-readme
- A few accounts/deploy related commands: logs, claim, login, logout
- remove-platform, reset, self-test
- admin maintainers (which unlike admin members and authorized prints an
  English header before the user list; maybe this is a mistake)

It might make sense in the future to further separate "pretty means can
show progress bars if the output is a TTY" from "pretty means can use
chalk styling and unicode bullets".

Fixes #3162.
2015-01-05 13:56:47 -08:00
David Glasser
0a0dab9176 Don't change .meteor/versions in --get-ready 2015-01-05 09:54:41 -08:00
David Glasser
253ec1a9d0 Don't add all packages with --get-ready! 2015-01-05 09:51:38 -08:00
David Glasser
a6dc912afb Remove redundant variable 2015-01-02 20:54:54 -08:00
David Glasser
315fa640ea Add release dates to History.md
Note that "backport" here doesn't just mean "patch release"; it means
"patch release to a release that was not the newest release" (ie, an
out-of-order entry in history)
2015-01-02 14:39:32 -08:00
Ben Newman
0514be4689 Revert back to Node v0.10.33 to fix regression in meteor debug.
Inspecting local variables in node-inspector is impossible in v0.10.35 due
to a known issue in Node: https://github.com/joyent/node/issues/8948
2015-01-02 00:21:37 -05:00
Ben Newman
e6499b2304 Remove unused 'promise' NPM package.
Bumping the dev bundle version to 0.3.81 because .79 and .81 have already
been built and copied to S3, but not merged into devel.
2014-12-29 20:41:57 -05:00
Ben Newman
e93f8bbc2a Update generate-dev-bundle.sh to use prebuilt Node v0.10.35. 2014-12-29 20:41:57 -05:00
Ben Newman
c16a8e86f6 Bump NODE_VERSION to 0.10.35. 2014-12-29 20:41:57 -05:00
David Glasser
da4ae8b3a8 Use files-wrapped pathwatcher
Accidentally broken in 6320acabc4 (the merge of 1.0.2 into devel).
2014-12-29 17:32:35 -08:00
David Glasser
c004cb9356 Update comment for wrapFsFunc 2014-12-29 17:27:13 -08:00
adnissen
bab6ac5ef7 fixed 'make list public/private' language to accurately reflect the action being performed 2014-12-29 13:47:24 -08:00
Emily Stark
059fc88ff9 Follow redirects on non-GET requests also.
Fixes #2808.
2014-12-28 22:19:37 -08:00
David Glasser
d0311c6f86 Clean up temp dirs from package downloads faster
Rather than waiting until process end.

Also, ensure that simultaneous calls to files.rm_recursive (possible now
that they can yield) can't throw ENOENT.

Fixes #3324.
2014-12-26 16:49:25 -08:00
David Glasser
904325f129 Fix banner showing logic
The missing JSON.parse meant that we were always calling new Date on a
string that started with a quotation mark and getting an invalid date
object, which caused shouldShowBanner to always return false if a banner
had ever been previously printed for that release. Oops. Bug introduced
in 1.0.2.

(At least the non-custom banner still prints.)

Fixes #3353.
2014-12-26 16:30:14 -08:00
David Glasser
6cac0513d5 Only try to refresh client if app uses autoupdate
Because that's where the SIGUSR2 handler is.

Arguably this should be some more abstract interface where packages can
say "I have a handler for client refresh", but whatever.

Fixes #3365.
2014-12-26 16:22:19 -08:00
David Glasser
995a57d0c2 Merge branch 'master' into devel
Conflicts:
	tools/safe-pathwatcher.js
2014-12-22 17:48:12 -08:00
David Glasser
f1a493aa04 Merge branch 'release-1.0.2.1'
Conflicts (because branched from release/METEOR@1.0.2, not the latest
commit on release-1.0.2):
	docs/.meteor/release
	docs/.meteor/versions
	docs/client/helpers.js
	examples/clock/.meteor/release
	examples/clock/.meteor/versions
	examples/leaderboard/.meteor/release
	examples/leaderboard/.meteor/versions
	examples/localmarket/.meteor/release
	examples/localmarket/.meteor/versions
	examples/todos/.meteor/release
	examples/todos/.meteor/versions
2014-12-22 17:45:35 -08:00
David Glasser
e9e849f0f5 Update examples to 1.0.2.1 2014-12-22 17:42:46 -08:00
David Glasser
9e58d3f045 Update docs to 1.0.2.1 2014-12-22 17:41:31 -08:00
David Glasser
8566ff30cd Whoops, forgot to make it a patch 2014-12-22 17:34:30 -08:00
David Glasser
27342dcbe4 fix banners.json 2014-12-22 17:31:03 -08:00
David Glasser
4ece886c36 1.0.2.1 release/METEOR@1.0.2.1 2014-12-22 16:52:44 -08:00
David Glasser
94b58c17bc proposed banners for 1.0.2.1 2014-12-22 15:23:34 -08:00
David Glasser
2c50456cef 1.0.2.1-rc.2 release/METEOR@1.0.2.1-rc.2 2014-12-22 14:15:04 -08:00
David Glasser
2343c1253e Make wiki link visible, fix capitalization 2014-12-22 13:32:21 -08:00
David Glasser
837c5faddf 1.0.2.1-rc.1 release/METEOR@1.0.2.1-rc.1 2014-12-22 12:33:14 -08:00
David Glasser
36d49dc61e History.md update for 1.0.2.1 2014-12-22 12:30:14 -08:00
David Glasser
5df873a4e0 Don't crash on pathwatcher failures
Instead, increase polling interval for that file/dir to 500ms from 5s.

Fixes #3336.

The most common case where this was occuring is when you're on Linux and
your inotify max_user_watches is too low.  A wiki page will explain how
to increase this.  In debug mode, a message will tell you to go to the
wiki page if you hit the limit (we may later expose this message by
default, but it is part of the new user experience).

Conflicts:
	meteor
	tools/safe-pathwatcher.js
2014-12-22 12:27:55 -08:00
David Glasser
63afb346c8 docs: display release in mobile header 2014-12-22 12:27:03 -08:00
David Glasser
301f73edec Fix test-packages * if some packages lack tests
Fixes #3334.

This was an intentional but poorly thought through change in
1.0.2 (1a9536baa).
2014-12-22 12:26:58 -08:00
David Glasser
f605377d8b Fix typo in meteor shell output
Fixes #3326.
2014-12-22 12:26:35 -08:00
David Glasser
f5f136adc9 Don't crash on pathwatcher failures
Instead, increase polling interval for that file/dir to 500ms from 5s.

Fixes #3336.

The most common case where this was occuring is when you're on Linux and
your inotify max_user_watches is too low.  A wiki page will explain how
to increase this.  In debug mode, a message will tell you to go to the
wiki page if you hit the limit (we may later expose this message by
default, but it is part of the new user experience).
2014-12-22 12:19:59 -08:00
David Glasser
508472eb8a docs: display release in mobile header 2014-12-22 09:39:23 -08:00
Slava Kim
fcf8f6616d Set the language in Blaze's readme's markdown 2014-12-21 18:00:13 -08:00
David Glasser
00a7da3dd0 Fix test-packages * if some packages lack tests
Fixes #3334.

This was an intentional but poorly thought through change in
1.0.2 (1a9536baa).
2014-12-20 20:38:25 -08:00
David Glasser
9d4175b2b4 Delete gitignore files from deleted packages 2014-12-20 20:30:17 -08:00
Rahul
5a70151a57 Correct spelling 2014-12-20 19:23:57 -06:00