BoxLang 🚀 A New JVM Dynamic Language Learn More...

CommandBox Git protect

v1.0.0 CommandBox Modules

CommandBox Git protect

As of CommandBox 5.1.0, box install in a project will overwrite any package (e.g. a Preside extension) where the current version does not match the installed version number - including downgrades.

This means that if your project has an extension which is a Git repo, which may likely have a placeholder such as VERSION_NUMBER which gets populated by a build script, it will always get overwritten, which is not ideal.

This module adds protection against this: if the existing package is a Git repo, it will never be overwritten.

Requirements

CommandBox 5.2.0 or later is required for this to work, which modifies the onInstall interceptor to allow it to skip installation of a module.

Changelog

v1.0.0

  • Initial release

$ box install commandbox-git-protect

No collaborators yet.
     
  • {{ getFullDate("2020-10-14T08:23:48Z") }}
  • {{ getFullDate("2020-10-14T08:36:17Z") }}
  • 2,093
  • 1,442