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

Issue 2642833002: Don't clobber symlinks to build directories (Closed)

Created:
3 years, 11 months ago by sfiera
Modified:
3 years, 11 months ago
Reviewers:
Dirk Pranke, Nico
CC:
chromium-reviews, Nico
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't clobber symlinks to build directories Background: in order to use multiple build directories without the cognitive or scripting overhead of figuring out which one is currently in use, I keep a symlink "out/cur" pointing to the current one. When the clobber script runs, it detects that out/cur is a build directory (because out/cur/args.gn exists) but shutil.rmtree() fails when applied to a symlink. This change skips the clobber when a link is detected and leaves out/cur pointing to the real build dir. There's no need to remove the symlink, since the original has been clobbered. Review-Url: https://codereview.chromium.org/2642833002 Cr-Commit-Position: refs/heads/master@{#444777} Committed: https://chromium.googlesource.com/chromium/src/+/29acddfbe7b3c92cd85d99e416f920849d011ec1

Patch Set 1 #

Patch Set 2 : Disable on Windows too #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M build/clobber.py View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (10 generated)
sfiera
3 years, 11 months ago (2017-01-18 16:38:07 UTC) #2
Dirk Pranke
How are you using this script that you're running into this problem? I don't even ...
3 years, 11 months ago (2017-01-18 21:04:16 UTC) #3
Nico
i think src/build/landmines.py uses this
3 years, 11 months ago (2017-01-18 21:29:41 UTC) #5
Dirk Pranke
On 2017/01/18 21:29:41, Nico wrote: > i think src/build/landmines.py uses this Ah, you're right. At ...
3 years, 11 months ago (2017-01-19 02:00:20 UTC) #6
sfiera
On 2017/01/18 21:29:41, Nico wrote: > i think src/build/landmines.py uses this Yep. I got one ...
3 years, 11 months ago (2017-01-19 10:17:24 UTC) #7
Dirk Pranke
lgtm
3 years, 11 months ago (2017-01-19 17:33:15 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2642833002/20001
3 years, 11 months ago (2017-01-19 17:36:23 UTC) #15
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 17:43:34 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/29acddfbe7b3c92cd85d99e416f9...

Powered by Google App Engine
This is Rietveld 408576698