bazelbuild / bazelbuild/bazel-skylib

feature request: Create common rule for symlinking

Open
#248 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Starlark
Stars
444
Forks
202
PR merge metrics
No merged PRs in 30d

Description

It would be great if skylib had a rule similar to `copy_file` that, instead of manually copying the file, uses `ctx.actions.symlink` (since Bazel 3.2).

This could be either implemented as a new rule (`symlink_file`?), or as attribute of `copy_file` (which could potentially become the default behavior in the future).

Contributor guide

Open the contributing guide

Research direction

Start by examining the existing `copy_file` rule and the Bazel 3.2 `ctx.actions.symlink` API. Determine whether the intended result is a separate `symlink_file` rule or an attribute on `copy_file`, then verify that the chosen interface creates symlinks instead of copying files.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.