Perl-Toolchain-Gang / cpan-static

Static install specification for CPAN distributions
13 stars 3 forks source link

Script locations #1

Open Leont opened 9 years ago

Leont commented 9 years ago

Currently only script/ is described, should it also cover bin/?

skaji commented 8 years ago

cf https://rt.cpan.org/Ticket/Display.html?id=110299

haarg commented 7 years ago

I would strongly support installing scripts from bin. Using bin for this seems much more common.

Leont commented 7 years ago

My main reason for using script was that perl's own install infrastructure distinguishes between script and bin install location (and hence has a blib/bin and a blib/script. I know of only two distributions that use blib/bin though, this distinction is mostly theoretical.

miyagawa commented 6 years ago

i don't have a strong opinion on this. Since this is a new protocol, supporting script sounds fine as a starter to me. Module authors who want to use static_install can have a dzil plugin or some sort that puts/moves the executables from bin to script in release time, for example.

haarg commented 6 years ago

If my choices are putting scripts in scripts/ or not using static install, I'll pick not using static install.

Leont commented 6 years ago

Given a number of people have asked for this, I'm leaning towards adding this (even if I'm not so fond of it myself)

miyagawa commented 6 years ago

@haarg can you clarify the reason? do you strongly prefer having bin in your git repo?

BTW, this might be something that we want extra configurations for, and maybe easier if we turn x_static_install to be a hash? Is that too complicated or too late?

x_static_install:
  version: 1
  bindir: bin
miyagawa commented 6 years ago

Rubygems default template has switched away from bin to exe but it sounds like for an entirely different silly reason http://bundler.io/blog/2015/03/20/moving-bins-to-exe.html

miyagawa commented 6 years ago

I'm totally fine with supporting both bin and script btw. What should be the behavior if there're the files with the same name in both directories? Maybe prefer script that way?