rapid7 / rex-powershell

Rex library for dealing with Powershell Scripts
Other
53 stars 35 forks source link

bundler fails to install data files, may be others #26

Open blshkv opened 3 years ago

blshkv commented 3 years ago

I'm installing the latest version 0.1.87 using the following command:


fatal: not a git repository (or any parent up to mount point /var/tmp)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

It fails due to the following line: https://github.com/rapid7/rex-powershell/blob/master/rex-powershell.gemspec#L16

The release should not use "git" since it is no longer available.

It is also reported in our bug track: https://github.com/pentoo/pentoo-overlay/issues/691

Update: it is mentioned as a bad practice in multiple places https://stackoverflow.com/questions/16203163/what-are-the-best-practices-for-updating-a-gemspecs-file-list Something like this should be used instead:

spec.files = Dir['data/**/*']

(need to be tested)

blshkv commented 3 years ago

The same problem with two other packages: rex-bin_tools rex-exploitation