Skip to content

Windows: output_root default should not be in TMP #5038

Closed

Description

@laszlocsomor

Description of the problem / feature request:

Read bazelbuild/continuous-integration#252 (comment) and following 5 comments.

TL;DR: If anything deletes your $TMP that's not aware of junctions and your outputroot is under the $TMP, then the external repo junctions and every junction pointing to places all over the filesystem will have files deleted from them.

Immediate solution: use GetHomeDir() instead of $TMP.

What operating system are you running Bazel on?

All windows versions.

What's the output of bazel info release?

0.12.0

Have you found anything relevant by searching the web?

Related: bazelbuild/continuous-integration#252

Activity

  1. laszlocsomor commented on Apr 17, 2018

    @laszlocsomor
    ContributorAuthor
  2. self-assigned this
    on Apr 17, 2018
  3. added
    P0
    on Apr 17, 2018
  4. laszlocsomor commented on Apr 17, 2018

    @laszlocsomor
    ContributorAuthor

    Blocking #4583.

  5. added
    P1
    and removed
    P0
    on Apr 17, 2018
  6. laszlocsomor commented on Apr 17, 2018

    @laszlocsomor
    ContributorAuthor

    OK, P0 was too much:

    • there's a simple workaround: use the --output_user_root flag
    • this bug affects every Bazel version, but it's rare

    P1 though because it is bad enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1platform: windowstype: bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions