rebar3 as test compile not fetching test dependencies
Fred Hebert
mononcqc@REDACTED
Thu Jan 13 19:46:26 CET 2022
Here's a sample run with 3.17.0, which I had already pre-installed:
λ /tmp → rebar3 new lib chk
===> Writing chk/src/chk.erl
===> Writing chk/src/chk.app.src
===> Writing chk/rebar.config
===> Writing chk/.gitignore
===> Writing chk/LICENSE
===> Writing chk/README.md
λ /tmp → cd chk
λ chk → vim rebar.config
λ chk → cat rebar.config
{profiles, [
{test, [{deps, [gun, meck]}]}
]}.
λ chk → rebar3 as test compile
===> Verifying dependencies...
===> Fetching gun v1.3.3
===> Fetching meck v0.9.2
===> Fetching cowlib v2.7.3
===> Analyzing applications...
===> Compiling meck
===> Compiling cowlib
===> Compiling gun
_build/test/lib/gun/src/gun.erl:654:29: Warning: erlang:get_stacktrace/0 is
removed; use the new try/catch syntax for retrieving the stack backtrace
===> Analyzing applications...
===> Compiling chk
I would probably advise to double-check the configuration format (see the
sample one I have included and displayed). This is pretty core
functionality and thoroughly tested, so I'd be very surprised to see it
break.
On Thu, Jan 13, 2022 at 8:47 AM Anthony Howe <achowe@REDACTED> wrote:
> Has anyone seen this happening?
>
> Using rebar3 3.16.1, I remove the whole `_build` directory, my
> `rebar.config`
> has a `test` profile with `deps` (gun and meck) specified. I do `rebar3
> as test
> compile` and it fetches all the default dependencies, but not the test
> ones,
> which of course means the test suites fail.
>
> I also tried rebar 3.18.0.
>
> --
> Anthony C Howe SnertSoft
> achowe@REDACTED Twitter: SirWumpus BarricadeMX & Milters
> http://snert.com/ http://nanozen.snert.com/ http://snertsoft.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20220113/b44cea35/attachment.htm>
More information about the erlang-questions
mailing list