Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Issue 1493463002: Disallow invalid package names in Pubspec. (Closed)

Created:
5 years ago by nweiz
Modified:
5 years ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/pub.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Disallow invalid package names in Pubspec. Previously these names were only disallowed when publishing, but now the package config format requires that we be more stringent about them. Closes #1361 R=rnystrom@google.com Committed: https://github.com/dart-lang/pub/commit/8c091bf6332e8b392fdac63ae297426fb65ed925

Patch Set 1 #

Total comments: 4

Patch Set 2 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -10 lines) Patch
M lib/src/pubspec.dart View 2 chunks +16 lines, -0 lines 0 comments Download
M lib/src/utils.dart View 1 1 chunk +9 lines, -1 line 0 comments Download
M lib/src/validator/name.dart View 2 chunks +2 lines, -9 lines 0 comments Download
A test/get/package_name_test.dart View 1 chunk +70 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
nweiz
5 years ago (2015-12-01 22:26:45 UTC) #1
Bob Nystrom
LGTM! We'll probably need to mention this in the SDK release notes as a breaking ...
5 years ago (2015-12-01 23:21:15 UTC) #2
nweiz
Code review changes
5 years ago (2015-12-02 00:28:05 UTC) #3
nweiz
https://codereview.chromium.org/1493463002/diff/1/lib/src/utils.dart File lib/src/utils.dart (right): https://codereview.chromium.org/1493463002/diff/1/lib/src/utils.dart#newcode25 lib/src/utils.dart:25: final identifierRegExp = new RegExp(r"[a-zA-Z_][a-zA-Z0-9_]*"); On 2015/12/01 23:21:15, Bob ...
5 years ago (2015-12-02 00:29:01 UTC) #4
nweiz
5 years ago (2015-12-02 00:30:18 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
8c091bf6332e8b392fdac63ae297426fb65ed925 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698