alisdair sullivan
ffbb31e660
purge mods loaded during check to see if they need to be recompiled
during compile task before running subsequent tasks
pirms 10 gadiem
alisdair sullivan
e6be44667d
suppress common_test output unless `rebar3 ct` is run with verbose switch
pirms 10 gadiem
Tristan Sloughter
c5a655da14
Merge pull request #157 from talentdeficit/real_needs_recompile
check already compiled modules compile arguments against current compile arguments
pirms 10 gadiem
Tristan Sloughter
43a18bf4fa
Merge pull request #145 from tsloughter/hex
Replace package management with hex.pm
pirms 10 gadiem
Tristan Sloughter
501b9b42df
print error message suggesting to run rebar3 update if missing package index
pirms 10 gadiem
Tristan Sloughter
9fbfeaa74d
parse version constraints in hex registry for digraph
pirms 10 gadiem
Tristan Sloughter
410e2bcdec
replace package management with hex.pm
pirms 10 gadiem
Tristan Sloughter
b654272063
remove unused functions from app utils
pirms 10 gadiem
alisdair sullivan
7fa628d615
check already compiled modules compile arguments against current compile
arguments to ensure compile results as as intended
pirms 10 gadiem
Fred Hebert
d65e6da7da
Merge pull request #156 from ferd/deps
Initial `deps` command
pirms 10 gadiem
Fred Hebert
53a05890ab
Initial `deps` command
pirms 10 gadiem
Fred Hebert
f6cdf56347
Merge pull request #154 from tsloughter/git_ref_needs_update
needs_update: on ref defined deps only have to match prefix if 7+ chars
pirms 10 gadiem
Tristan Sloughter
9665eb8e72
Merge pull request #153 from fishcakez/dialyzer_no_defaults
Dialyzer: Remove extra default warnings
pirms 10 gadiem
James Fish
e2d3c27b80
Remove extra default warnings
It is not convenient for everyone to handle unmatched_returns and
underspecs warnings. Extra default warnings are removed to match
dialyzer's behaviour.
pirms 10 gadiem
Tristan Sloughter
9f2133df47
needs_update: on ref defined deps only have to match prefix if 7+ chars
pirms 10 gadiem
Tristan Sloughter
63a765f1b0
Merge pull request #152 from fishcakez/dialyzer_plt_warnings
Fix {dialyzer_plt_warnings, false}
pirms 10 gadiem
James Fish
4b8e9db4ca
Fix dialyzer when only updating plt
Previously dialyzer would crash when not doing success typing analysis.
pirms 10 gadiem
James Fish
cede33a8f9
Fix {dialyzer_plt_warnings, false} returning warnings
When dialyzer_plt_warnings is false no warnings should be returned when
updating a PLT. Previously any callgraph warnings would be returned when
updating a PLT regardless of the get_warnings option.
pirms 10 gadiem
Tristan Sloughter
dcab8baca0
Merge pull request #142 from rebar/wtf-provider
Initial WTF provider implementation
pirms 10 gadiem
Fred Hebert
36563c0ab9
Advertise rebar3 wtf in error messages
pirms 10 gadiem
Tristan Sloughter
4b162c5917
Merge pull request #144 from cmkarlsson/erl-first-files-140
Fix #140 and preserve erl_first_files order
pirms 10 gadiem
Martin Karlsson
dca4edade0
Fix #140 and preserve erl_first_files order
Match erl_first_files properly against all files needing
compilation and make sure the order of erl_first_files as specified in
rebar.config is preserved (rebar/rebar#445 )
pirms 10 gadiem
Fred Hebert
1d9f1737c7
Initial WTF provider implementation
Tests missing
pirms 10 gadiem
Fred Hebert
3001618a4a
Merge pull request #126 from ferd/upgrade-redo
Upgrade procedure, from scratch (WIP)
pirms 10 gadiem
Fred Hebert
2e34e91dfb
Warnings for Deletions and friendly errors
Apps that are no longer used are not automatically deleted, but we tell
users it can be done. This is safer while we're not sure of the
correctness of these messages.
Error messages are added for transient dependencies and dependencies not
found.
pirms 10 gadiem
Fred Hebert
6d8567a7ed
Support multiple app upgrade & lock tests
- Many apps is supported through and through
- Not mentioning any app upgrades all apps
- Locks are refreshed on disk and tested as such after an upgrade
pirms 10 gadiem
Fred Hebert
62dc8fa9c7
Fix testcases, add multi-app upgrade support
todo:
- relock stuff
- default to all apps needing upgrade
- more tests?
- pkgs?
pirms 10 gadiem
Fred Hebert
f5acdfb9a5
Refactor install_deps to match 'upgrade' ideas
- rename 'update' to 'upgrade' -- 'update' stands for package list
updates, not dependencies upgrades
- extracting some deeply nested code
pirms 10 gadiem
Fred Hebert
92436d9960
More progress on upgrades
Only the most complex case is failing, where cross-dependencies would
need to be refetched as an update clears an app of its dependencies and
a different subtree should override it.
pirms 10 gadiem
Fred Hebert
748a046133
Partial work + Failing tests
The problem with the current effort is handling of transitive dependency
upgrades and possible values.
pirms 10 gadiem
Fred Hebert
9fb35fe6de
Alternative attempt
pirms 10 gadiem
Fred Hebert
b94afdfa2d
WIP
Test that all the correct locks are set for an upgrade run.
Now to actually re-run the install deps and prove it works
pirms 10 gadiem
Fred Hebert
2fd6f43c02
Merge pull request #138 from talentdeficit/args_to_tasks
factor out task/args parsing from `do` for use in other meta commands
pirms 10 gadiem
alisdair sullivan
c79d13f5e8
factor out task/args parsing from `do` for use in other meta
commands
pirms 10 gadiem
Tristan Sloughter
7298c9f774
Merge pull request #132 from fishcakez/dialyzer_fail
Dialyzer fails if any warnings
pirms 10 gadiem
Tristan Sloughter
bf5b1d59c0
Merge pull request #134 from fishcakez/dialyzer_tests
Add dialyzer tests
pirms 10 gadiem
Tristan Sloughter
bbda0b2208
Merge pull request #135 from fishcakez/dialyzer_erts_app
Fix dialyzer erts file lookup for releases prior to R16B02
pirms 10 gadiem
James Fish
d693093c00
Fix dialyzer erts file lookup for releases prior to R16B02
erts.app was introduced in R16B02 so read all beam files from the erts
ebin directory if erts.app file does not exist.
pirms 10 gadiem
James Fish
9a90239e51
Add initial dialyzer tests
pirms 10 gadiem
Tristan Sloughter
d0668532a3
Merge pull request #133 from nuex/handle-missing-app-file
Validate .app File Presence
pirms 10 gadiem
nuex
79a1c285f0
return an error when an app file is missing
pirms 10 gadiem
James Fish
027b0f008b
Fix dialyzer plt checking typo
pirms 10 gadiem
James Fish
e533e5d705
Display full path in dialyzer warningss
pirms 10 gadiem
James Fish
52319655a5
Fail if any dialyzer warnings aren't unknowns
pirms 10 gadiem
Tristan Sloughter
038d721f90
Merge pull request #129 from kellymclaughlin/add-pkgs-to-code-path
Add packages to code path after installation
pirms 10 gadiem
Tristan Sloughter
62581cfcc3
Merge pull request #131 from rebar/jem-rebar-deps-tag
Add documentation for {ref, <sha>} syntax rebar.config.sample file
pirms 10 gadiem
Jared Morrow
5250b8c9d9
Add documentation for {ref, <sha>} syntax rebar.config.sample file
Addresses: #130
pirms 10 gadiem
Kelly McLaughlin
29039bece6
Change mock_pkg_resource to create ebin directory
Change mock_pkg_resource to use rebar_test_utils:create_empty_app so
that an ebin directory is created which is a good expectation for a
package. Also revert the check in rebar_fetch:download_source to check
for an ebin directory before adding it to the code path for package
installs. If a package does not have an ebin directory it is probably
a good for an exception to be thrown.
pirms 10 gadiem
Kelly McLaughlin
e3ff657dc2
Ensure package ebin directory exists prior to adding to code path
pirms 10 gadiem
Kelly McLaughlin
507281f658
Add packages to code path after installation
Fix a bug where packages are not added to the code path after
installation. Dependent applications that build from source are not
affected by this issue since the build_apps function in
rebar_prv_compiler takes care of the code path changes for them. It is
only the precompiled packages that suffer from this issue.
pirms 10 gadiem