voltone / rebar3_sbom

Rebar3 plugin to generate CycloneDX SBoM
BSD 3-Clause "New" or "Revised" License
10 stars 9 forks source link

Fix build on OTP<25 #9

Closed voltone closed 2 years ago

voltone commented 2 years ago

Turns out, uri_string module was added in OTP21, but quote/1 was not added until OTP25

voltone commented 2 years ago

This selects the available percent-escape function based on the OTP version during compilation. But thing is, if the plugin is installed globally it may be run with a different OTP version from the one it was compiled with...

voltone commented 2 years ago

Looks like global plugins are built in the project's _build directory, using the OTP version used for the project, so should be ok.