Skip to content

[2.x] After deleting the disk cache, the creation of symlinks stops #8478

@azdrojowa123

Description

@azdrojowa123

steps

  1. Open project with sbt 2.0.0-RC8 (maybe the behaviour is the same in the previous versions, I was testing with this one). Add any scala code to the project.
  2. Start the sbt shell
  3. Execute compile task
    Expected & actual result: target/out/value contains many directories named with hashes, each containing symlinks to the CAS inside.
  4. Remove the disk cache (both AC & CAS)
  5. Execute compile task
  6. Remove whole target/out/value
  7. Execute compile task
    Expected result: target/out/value contains directories named with hashes, each containing symlinks to the CAS inside.
    Actual result: target/out/value contains directories named with hashes, each containing real files instead of symlinks.

problem

It seems that the symlinkSupported flag was somehow set to false during these steps, which caused symlink creation to stop.
It also affects the results of tasks such as exportedProductJars, where instead of creating symlinks, the jar is copied when symlinkSupported is set to false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions