Fred Hebert
ef3e9e7aa2
Make the escriptize provider hookable
This will allow to move and modify the generated files
8 vuotta sitten
Fred Hebert
4b63d35b94
Merge pull request #1298 from ferd/escript-filter-paths-fix
Fix filtering of system libraries in escriptize
8 vuotta sitten
Fred Hebert
4bbd20f290
Merge pull request #1288 from ElectronicRU/master
Typo fix.
8 vuotta sitten
Fred Hebert
ea7942d947
Fix filtering of system libraries in escriptize
https://github.com/erlang/rebar3/pull/1249 introduced a mechanism by
which escript dependencies of applications only would be included; this
required adding a filter to skip system libraries in the OTP root
because that tends to break escripts in very nasty ways.
However, the problem came that some libraries are just not in the
escript path but may still be included; for these libraries the path
prefix check failed as they return `{error, bad_name}` from
`code:lib_dir(Dep)` rather than just the path they're in --
specifically, this happens with top level apps.
The issue was reported in https://github.com/erlang/rebar3/issues/1294
and the current patch fixes it by accepting a `bad_name` dep as valid,
since it is obviously not in the root path.
8 vuotta sitten
Fred Hebert
de9f341c9b
Merge pull request #1282 from ssbx/custom_template_dir
template_dir option was forgotten in documentation plus recurse in di…
8 vuotta sitten
Fred Hebert
26104213e6
Merge pull request #1291 from waisbrot/catch-missing-app
Handle `escriptize` when the specified app is missing
8 vuotta sitten
Fred Hebert
8205d24245
Merge pull request #1297 from brigadier/patch-1
Ignore IntelliJ IDEA files
8 vuotta sitten
Evgeny M
bfd15ce03e
Ignore IntelliJ IDEA files
This family of IDE with Erlang plugin is already quite popular.
8 vuotta sitten
Nathaniel Waisbrot
f9576c8598
Handle `escriptize` when the specified app is missing
When rebar.config contains a `escript_main_app` option, but the
specified app doesn't exist in the build directory, print an error.
8 vuotta sitten
Alexander Sedov
a5bdf11770
Typo fix.
8 vuotta sitten
Fred Hebert
fbfcdfcb8b
Merge pull request #1274 from deadtrickster/ssl_verify_fun_bump
ssl_verify_hostname was renamed to ssl_verify_fun
8 vuotta sitten
alisdair sullivan
690b5c6843
Merge pull request #1270 from ferd/add-issue-template
Add issue template to help people fill tickets
8 vuotta sitten
alisdair sullivan
f57102aeb6
Merge pull request #1279 from gbour/fix-dialyzer
fix catching `not_valid` error on dialyzer
8 vuotta sitten
Guillaume Bour
b668329a9e
Fix return error on `not_valid` to force .plt file regeneration
8 vuotta sitten
Sébastien Serre
c8ec1546e5
template_dir option was forgotten in documentation plus recurse in directory added
8 vuotta sitten
Fred Hebert
fef403b341
Merge pull request #1280 from ferd/fix-warning-opts
Fix opts check when compiler called with dict opts
8 vuotta sitten
Fred Hebert
2c7296babf
Fix opts check when compiler called with dict opts
rebar_base_compiler allows to be called with two types of options: a
dictionary, or a rebar_state record. In the later case, the options are
taken out with a call from rebar_opts, which fetches options that have
been inserted in the application via rebar_app_info as part of the
app_discovery phase, and are a list.
This yields a possibility that options used when formatting warnings can
either be a list of a dict, and we only used lists when making checks.
This ended up breaking 3rd party compiler users (i.e. LFE compile
plugin) since they were calling us with a dict rather than our own
internal records.
This patch supports both types of lookups to avoid issues.
8 vuotta sitten
Guillaume Bour
ffe5e42521
Fix support for `not_valid` dialyzer error
8 vuotta sitten
Ilya Khaprov
b75f95e063
ssl_verify_hostname was renamed to ssl_verify_fun
8 vuotta sitten
Fred Hebert
0b3a8ad77e
Add issue template to help people fill tickets
8 vuotta sitten
Fred Hebert
21571ad38a
Merge pull request #1268 from stuart-thackray/relx_upgrade_3.20.0
Relx upgrade to version 3.20.0
8 vuotta sitten
Stuart Thackray
b911b75812
rebar update relx
8 vuotta sitten
Stuart Thackray
48565557e4
upgrade relx version
8 vuotta sitten
Fred Hebert
91a25c1184
Merge pull request #1266 from ferd/add-otp-19-travis
Add OTP 19.0 to travis
8 vuotta sitten
Fred Hebert
a759ed6620
Add OTP 19.0 to travis
8 vuotta sitten
Fred Hebert
47380929c4
Merge pull request #1265 from fishcakez/avoid-rebuild
Avoid PLT rebuild when files deleted on new dialyzer
8 vuotta sitten
James Fish
941048dce7
Avoid PLT rebuild when files deleted on new dialyzer
8 vuotta sitten
Fred Hebert
403d338307
Merge pull request #1262 from fishcakez/empty-plt
Handle empty PLT or app when using dialyzer
8 vuotta sitten
James Fish
0fa2b501f0
Don't error when analyzing empty app
8 vuotta sitten
James Fish
e334f211e3
Handle empty PLTs
8 vuotta sitten
Fred Hebert
8f6c13dead
Merge pull request #1249 from ferd/required-escript-deps
Escriptize based on configured apps only
8 vuotta sitten
Fred Hebert
90f9b0e619
Merge pull request #1251 from srstrong/master
Fixes for windows environment: 1) copy empty directories when cloning…
8 vuotta sitten
Steve Strong
c86201b85b
Fixes for windows environment: 1) copy empty directories when cloning (since git occasionally has a refs directory with no files in it - if the directory is not present, then git does not believe it is a git repo) and 2) change order of git rev-parse arguments to match git docs
8 vuotta sitten
Fred Hebert
c3f336763f
Fix invalid template value
Used a nonexisting option instead of a correct one
8 vuotta sitten
Fred Hebert
6bc8ccefd3
Escriptize based on configured apps only
Prior to this patch, the escriptize command flat out selected all
declared dependencies.
This patch instead looks at the app files and only includes the
dependencies of the top level app and the extra ones, avoiding to
package more apps than required.
This required a version bump on cth_readable as it mistakenly included
'syntax_lib' instead of 'syntax_tools' as a dependency.
8 vuotta sitten
Fred Hebert
feed75ca91
Merge pull request #1207 from ferd/pkg-local-hash-lock
lock file contains expected hash for pkg dependencies
8 vuotta sitten
Fred Hebert
4fd4195281
Merge pull request #1242 from jonathn/unset-debug
Let DEBUG="" and QUIET="" mean disable the option
8 vuotta sitten
Fred Hebert
4400ff5ce1
Merge pull request #1244 from ferd/shell-pr2relnotes-script
use logs rather than skimming github pages
8 vuotta sitten
Fred Hebert
f1ae529d58
use logs rather than skimming github pages
8 vuotta sitten
Fred Hebert
7b56c41090
go back to semver post-release
8 vuotta sitten
Fred Hebert
2ffbb80cea
Bump to 3.2.0
8 vuotta sitten
Fred Hebert
aa273a15d5
Merge pull request #1243 from jonathn/fix-unicode-tree
Fix unicode rendering of deps tree (issue #1140 )
8 vuotta sitten
Jon
c7b7b9005f
Fix unicode rendering of deps tree (issue #1140 )
8 vuotta sitten
Jon
391f3b3bec
Let DEBUG="" and QUIET="" mean disable the option
Setting DEBUG/QUIET environment variable to the empty string now acts
the same as unsetting it. Unsetting is not always easy/possible.
8 vuotta sitten
Louis-Philippe Gauthier
4ff52d991e
Add support for cover_excl_mods
9 vuotta sitten
Fred Hebert
ac69558087
Merge pull request #1234 from talentdeficit/shell_config
ignore return value of `rebar_utils:reread_config` in shell provider
9 vuotta sitten
alisdair sullivan
74cc922fb4
ignore return value of `rebar_utils:reread_config` in shell provider
9 vuotta sitten
Fred Hebert
db8dbdfbcf
Merge pull request #1233 from talentdeficit/REBAR-1199
normalize include dirs to absolute paths during compilation
9 vuotta sitten
alisdair sullivan
dfec27a1cd
normalize include dirs to absolute paths during compilation
changed include files were not properly picked up by `erlc_compiler`
in cases where they were in directories relative to the application
source and not the current working dir of rebar3
fixes #1199
9 vuotta sitten
Fred Hebert
095af3bfca
Merge pull request #1232 from talentdeficit/REBAR-1184
REBAR-1184 always recompile if `ERL_COMPILER_OPTIONS` env var is set
9 vuotta sitten