Tristan Sloughter
4eaeca8890
add edoc provider
10 lat temu
Tristan Sloughter
dcd8962afb
remove old info function from install_deps, it is a bare provider
10 lat temu
Fred Hebert
e8b2c274e9
Fix crash on non-git source deps in deps provider
The 'element(1, ..)' guard would always fail and cause crashes.
10 lat temu
Tristan Sloughter
235436a410
profiles: combine lists of values for conflicting config options
10 lat temu
Fred Hebert
1a132f6c36
We can use 3.0.0 when we're done.
10 lat temu
Fred Hebert
6ccef53891
Revert accidental commited debug code
10 lat temu
Fred Hebert
c283dd2c69
Add tests and fixes for packages upgrades
- Track level of packages properly, they're not level 0 anymore (this
could yield an issue where a src dep takes precedence over a pkg dep)
- Proper stable sort of vertices in the digraph module
- PkgDeps no longer 'see themselves' when fetching and upgrading after
locking themselves
- Pkg Locks are added to pkg deps rather than source deps
- Updating test cases to support pkg mocking on top of src mocking
10 lat temu
Fred Hebert
249be4985c
Reuse test code and drop duplicated stuff
10 lat temu
Fred Hebert
d6dc56da03
Fix lock merging for nonexistant lock files.
10 lat temu
Tristan Sloughter
0c402a8293
output hook stdout and don't add extra newline
10 lat temu
alisdair sullivan
521a49dd26
don't unescessarily recompile yrl/xrl files
fixes #175
10 lat temu
alisdair sullivan
04235f1a63
don't attempt to merge locks when there are no dependencies
fixes #172
10 lat temu
Tristan Sloughter
c3e2ab1c1e
remove unneeded get_modules_list function
10 lat temu
Tristan Sloughter
8f03afded4
consolidate app validation and exist checks
10 lat temu
Tristan Sloughter
633dafafc3
release and tar tests
10 lat temu
Fred Hebert
81f47c44ec
Reindent multiline assignment
10 lat temu
Fred Hebert
d4d4e27693
Pass in newer state reference
Old one might have been a mistake; this one works fine.
10 lat temu
Fred Hebert
1c638b05fa
Refactor install deps
- Make functions shorter
- Unnest some functions
- Split up and give names to major conditional branches
10 lat temu
Tristan Sloughter
62ff6718fd
update project app list with new appinfo records after build
10 lat temu
Tristan Sloughter
e73ed97cfd
follow xdg standard. fixes #122
10 lat temu
Tristan Sloughter
02e33a265b
check for newly added deps in config file that aren't level 0 in the lock
10 lat temu
Tristan Sloughter
8874e414a8
sort project apps before merging deps
10 lat temu
alisdair sullivan
a14f750131
fix error where an exception in ct could hang rebar by monitoring
the process where ct is performed
10 lat temu
Tristan Sloughter
be49c5cd44
use project sub-apps with deps in their rebar.config
10 lat temu
alisdair sullivan
ffbb31e660
purge mods loaded during check to see if they need to be recompiled
during compile task before running subsequent tasks
10 lat temu
alisdair sullivan
e6be44667d
suppress common_test output unless `rebar3 ct` is run with verbose switch
10 lat temu
Tristan Sloughter
501b9b42df
print error message suggesting to run rebar3 update if missing package index
10 lat temu
Tristan Sloughter
9fbfeaa74d
parse version constraints in hex registry for digraph
10 lat temu
Tristan Sloughter
410e2bcdec
replace package management with hex.pm
10 lat temu
Tristan Sloughter
b654272063
remove unused functions from app utils
10 lat temu
alisdair sullivan
7fa628d615
check already compiled modules compile arguments against current compile
arguments to ensure compile results as as intended
10 lat temu
Fred Hebert
53a05890ab
Initial `deps` command
10 lat temu
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.
10 lat temu
Tristan Sloughter
9f2133df47
needs_update: on ref defined deps only have to match prefix if 7+ chars
10 lat temu
James Fish
4b8e9db4ca
Fix dialyzer when only updating plt
Previously dialyzer would crash when not doing success typing analysis.
10 lat temu
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.
10 lat temu
Fred Hebert
36563c0ab9
Advertise rebar3 wtf in error messages
10 lat temu
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 )
10 lat temu
Fred Hebert
1d9f1737c7
Initial WTF provider implementation
Tests missing
10 lat temu
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.
10 lat temu
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
10 lat temu
Fred Hebert
62dc8fa9c7
Fix testcases, add multi-app upgrade support
todo:
- relock stuff
- default to all apps needing upgrade
- more tests?
- pkgs?
10 lat temu
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
10 lat temu
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.
10 lat temu
Fred Hebert
748a046133
Partial work + Failing tests
The problem with the current effort is handling of transitive dependency
upgrades and possible values.
10 lat temu
Fred Hebert
9fb35fe6de
Alternative attempt
10 lat temu
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
10 lat temu
alisdair sullivan
c79d13f5e8
factor out task/args parsing from `do` for use in other meta
commands
10 lat temu
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.
10 lat temu
nuex
79a1c285f0
return an error when an app file is missing
10 lat temu