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

Issue 1155713006: GN: Make file/dir resolving return errors. (Closed)

Created:
5 years, 6 months ago by brettw
Modified:
5 years, 6 months ago
Reviewers:
scottmg
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

GN: Make file/dir resolving return errors. Previously GN would silently eat some types of errors when resolving files or directory names, leading to unexpected behavior. This adds error checking to the resolution functions. Committed: https://crrev.com/ff0986feacdae709a944b7cc6ee990b6cc304b76 Cr-Commit-Position: refs/heads/master@{#332697}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -122 lines) Patch
M tools/gn/action_target_generator.cc View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M tools/gn/command_format.cc View 1 chunk +8 lines, -1 line 0 comments Download
M tools/gn/commands.cc View 2 chunks +11 lines, -2 lines 0 comments Download
M tools/gn/filesystem_utils_unittest.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M tools/gn/function_exec_script.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M tools/gn/function_get_path_info.cc View 2 chunks +11 lines, -7 lines 0 comments Download
M tools/gn/function_read_file.cc View 1 chunk +3 lines, -1 line 0 comments Download
M tools/gn/function_rebase_path.cc View 1 4 chunks +15 lines, -6 lines 0 comments Download
M tools/gn/function_write_file.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M tools/gn/functions.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M tools/gn/label.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/label_pattern.cc View 1 chunk +2 lines, -6 lines 0 comments Download
M tools/gn/setup.cc View 2 chunks +10 lines, -6 lines 0 comments Download
M tools/gn/source_dir.h View 2 chunks +16 lines, -4 lines 0 comments Download
M tools/gn/source_dir.cc View 1 2 3 6 chunks +54 lines, -28 lines 0 comments Download
M tools/gn/source_dir_unittest.cc View 3 chunks +78 lines, -38 lines 0 comments Download
M tools/gn/source_file.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/value_extractors.cc View 2 chunks +3 lines, -7 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
brettw
5 years, 6 months ago (2015-06-03 20:55:16 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1155713006/20001
5 years, 6 months ago (2015-06-03 20:58:59 UTC) #6
scottmg
lgtm https://codereview.chromium.org/1155713006/diff/1/tools/gn/action_target_generator.cc File tools/gn/action_target_generator.cc (right): https://codereview.chromium.org/1155713006/diff/1/tools/gn/action_target_generator.cc#newcode82 tools/gn/action_target_generator.cc:82: if (script_file.value().empty()) should this be err_.has_error()? https://codereview.chromium.org/1155713006/diff/1/tools/gn/source_dir.cc File ...
5 years, 6 months ago (2015-06-03 21:01:59 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/43877) linux_chromium_gn_dbg on ...
5 years, 6 months ago (2015-06-03 21:08:33 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1155713006/60001
5 years, 6 months ago (2015-06-03 21:31:22 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 6 months ago (2015-06-03 21:45:50 UTC) #13
commit-bot: I haz the power
5 years, 6 months ago (2015-06-03 21:46:43 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ff0986feacdae709a944b7cc6ee990b6cc304b76
Cr-Commit-Position: refs/heads/master@{#332697}

Powered by Google App Engine
This is Rietveld 408576698