gruntjs / gruntjs/grunt

Add an option to copy task for symlinks

Open
#1,761 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.2k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

Recent change in Grunt `v1.5.0` has broken our build process, since it copies symlinks as symlinks which is not expected.
Changing copied file contents after copy, changes original file because it is a symlink.

So in fact, it is not backward compatible with the introduced change.

Expected: Symlink should be copied as new file as it was in pre `v1.5.0` version.

Please add an option to support symlink copying for `grunt.copy` task, but it should be `false` by default to not break existing functionality.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the grunt.copy task and the symlink-copy behavior introduced in Grunt v1.5.0. Confirm the default behavior preserves pre-v1.5.0 copying, and verify that changing copied contents no longer changes the symlink target.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.