dlang / dub

Package and build management system for D
MIT License
678 stars 227 forks source link

Fix zip symlink problem. #2489

Closed schveiguy closed 2 years ago

schveiguy commented 2 years ago

The problem occurs because symlinks must be created with the symlink function, you can't just set the symlink attribute type using setAttributes.

I know, there's a goto in here.

I tried to do it without goto, and it looks terrible. The only other option is to repeat the normal file output inside the version statement, or maybe have a nested function, neither of which are as attractive to me.

If the goto is a dealbreaker, let me know how to proceed.