| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- The README is better targetted to newcomers and explains the basics of
the project: what it is, why use it, how to get started, where to find
more information. It looks less like a reference and more like a brief
overview of rebar3.
- Whatever looks like a list or reference manual material is expected to
be moved to the website
- Be clearer about the rebar3 project structure in CONTRIBUTING.md;
explain how to write tests, how to structure code, and so on.
- Added contributing section on bug reports, feature requests, etc.
|
|\ \ \ \
| |/ / /
|/| | | |
Display error message when bad config is loaded
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
If a bad configuration file is submitted to rebar3 shell, display the
following error:
===> The configuration file submitted could not be read and will be
ignored.
And keep going otherwise rather than silently failing.
While crash-fast is usually a good mechanism, the shell so far is very
tolerant of failures from apps to boot and whatnot, so this feels
appropriate.
Fixes #1019
|
|\ \ \
| |/ /
|/| | |
check at runtime instead of compile time for `file:list_dir_all/1`
|
| | |
| | |
| | |
| | |
| | |
| | | |
this is slower than the compile time check but i guess packaging rebars with
repos is still a thing and i think only the eunit and ct providers call it
anyways
|
|\ \ \
| | | |
| | | | |
change detection of valid modules for `eunit`
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
`beam_lib:chunks(..)` needs a path to object code which, frustratingly,
`code:which/1` won't return for cover compiled modules. instead just
assume that if `code:which/1` doesn't return `non_existing` a module
is something we can run tests on
|
|\ \ \
| |/ /
|/| | |
convert 'app' to 'application' in eunit_opts to match cmdline args
|
| | | |
|
|\ \ \
| | | |
| | | | |
when using the `--file' argument to `eunit' paths were being converted
|
|/ / /
| | |
| | |
| | | |
into directory test arguments
|
|\ \ \
| |/ /
| | | |
upgrade bbmustache and relx
|
|/ / |
|
|\ \
| | |
| | | |
Remove triple brackets in bbmustache templates
|
|/ /
| |
| |
| |
| |
| | |
Issues formerly were avoided by quoting atoms. Unquoting them created
unbalanced tags (`{{{name}}`) which were mistakes. This patch inserts
spaces to unconfused bbmustache.
|
|\ \
| | |
| | | |
upgrade relx to 3.12.0
|
| | | |
|
|\ \ \
| | | |
| | | | |
Support old-style shell for rebar3 shell
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This reuses the trick used within OTP to pick within old and new shell.
The 'user' structure is the same for all cases (escript, escript + dumb
TERM, unstable install, unstable install + dumb TERM), so we take it
down first.
Then we boot the TTY driver, which fails if TERM=dumb, in which case we
boot the retro-style usr. If it worked, we shut down the driver again,
and boot a modern shell structure.
This avoids all warnings and seems to work in all cases.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This is quite the hack.
This requires to detect the current shell running; if it's the new
shell, business as usual.
However, if it's the old shell, we have to find a way to take over it
and drive IO. This requires a few steps because:
- the old shell does not let you be supervised intelligently (it uses
supervisor_bridge, so killing the child is not a supported operation
from the supervisor)
- the old shell ignores all trappable exit signals except those coming
from the Port in charge of stdio ({fd, 0, 1})
- the old shell shuts down on all exit signals from the stdio Port
except for badsig, and replicates the shutdown reason otherwise
- An escript does not tolerate the `user` process dying (old shell) for
any non-normal reason without also taking the whole escript down
- Booting in an escript has an implicit 'noshell' argument interpreted
by the old shell as a way to boot the stdio Port with only stdout
taken care of
Because of all these points, we have to kill the old `user` process by
sending it a message pretending to be the Stdio port dying of reason
`normal`, which lets it die without triggering the ire of its
supervision tree and keeping the escript alive. This, in turn, kills the
old stdio port since its parent (user.erl) has died.
Then we have to boot our copy of user.erl (rebar_user.erl) which
conveniently ignores the possibility of running the stdio port on stdout
only -- always using stdin *and* stdout, giving us a bona fide old-style
shell.
A known issue introduced is that running r3:do(ct) seems to then kill
the shell, and r3:do(dialyzer) appears to have an odd failure, but
otherwise most other commands appear to work fine.
|
|\ \ \ \
| | |/ /
| |/| | |
merge overlay entries into a single {overlay, list()} for relx
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Updates cth_readable so it supports dumb terminals
|
| | |/ /
| |/| |
| | | |
| | | |
| | | | |
cth_readable 1.2.0 uses cf 0.2.1 to output colors, which makes it
support dumb terminals without issue.
|
|\ \ \ \
| | | | |
| | | | | |
Unquote templates, add a warning instead.
|
|/ / / / |
|
|\ \ \ \
| | |/ /
| |/| | |
install project app plugins after discovering them not before
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
only apply default and prod profile to dependencies
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
Fix windows stuff
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
- robocopying a directory into another directory recursively expects the
directory name to be properly mapped onto the destination, otherwise
all the files are copied into the given path. This patches things so
a directory-to-directory robocopy works as expected in a linux mindset
so tests pass
- the test for canonical paths didn't expect a windows environment at
all; the test (and library) is modified to be consistent in that
environment: always with a native format and with proper support of
drive letters.
|
| | |/ /
| |/| | |
|
|\ \ \ \
| | |/ /
| |/| | |
only need to compare ref and not ref+url in git resource
|
|/ / / |
|
|\ \ \
| |/ /
|/| | |
warn if the directories `eunit' or `ct' show up in `src_dirs'
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
if these directories actually exist they'll be added to the path ahead
of the release/standard distribution directories and they'll break eunit
and/or ct execution
fixes #950
|
|\ \ \
| |/ /
|/| | |
contributors -> maintaiers in template app data
|
|/ /
| |
| |
| |
| | |
hex.pm is now using maintainers instead of contributors in metadata.
Templates should be updated to reflect it.
|
|\ \
| | |
| | | |
Allow bootstrap to pick up existing Hex cache and deps
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This detects existence of Hex registry at
$HOME/.cache/rebar3/hex/default/registry and skips "rebar3 update" step.
It also detect presence of bootstrap dependencies in _build/default/lib/
and skips fetching them.
|
|\ \ \
| | | |
| | | | |
allow ct suites to be specified at root of project (or root of app)
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
this allows repeated test suite names across apps without conflicts
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
previously rebar3 dropped suites declared at the root of the project (via
`--suite=whatever_SUITE' probably) and warned. this was because the compiler
would recursively copy and compile everything in the directory indicated by
the test suite. this changes the copy mechanism to only copy erl source files
and directories that end with `_SUITE_data' into the `extras' dir in `_build'
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
convert ~> versions to highest matching
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Bump cth_readable to 1.1.1
|
|/ / / / /
| | | | |
| | | | |
| | | | | |
This fixes a typo that could cause failure in some test runs.
|