Skip to content

Symlink creation fails for non-privileged Windows user #106

@denyska

Description

@denyska

Plugin version: 0.8.2

Execution failed for task ':<REDACTED_PATH>:createSymLinksToModules'.
> java.nio.file.FileSystemException: c:\<REDACTED_PATH>\proto\build\bufbuild\src-main-proto: A required privilege is not held by the client

I guess something similar to https://github.com/golang/dep/pull/781/files#diff-ef03141dd8338143c09a5b30ceb3d079d25015a96f8b5292ee29daa23348df2e needs to be done, i.e. wrap symlink creation in try/catch and if failed and $os == windows then fallback to copying extracted and included proto dependencies.

Quick search reveals that this is only case for non-privileged Windows users, and admin user will be able to create symlinks without issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions