gleam icon indicating copy to clipboard operation
gleam copied to clipboard

`expert-experiments`: Compiler warning due to transitive dependency being imported in tests

Open sanderploegsma opened this issue 10 months ago • 1 comments

Running gleam test on the expert-experiments concept exercise yields the following warning:

$ gleam test
  Compiling argv
  Compiling gleam_stdlib
  Compiling gleam_community_colour
  Compiling gleam_community_ansi
  Compiling gap
  Compiling glexer
  Compiling glance
  Compiling gleam_erlang
  Compiling thoas
===> Analyzing applications...
===> Compiling thoas
  Compiling gleam_json
  Compiling simplifile
  Compiling exercism_test_runner
  Compiling gleam_bitwise
  Compiling gleam_otp
  Compiling expert_experiments

warning: Transitive dependency imported
  ┌─ /Users/sander/Dev/exercism/workspace/gleam/expert-experiments/test/expert_experiments_test.gleam:4:1
  │
4 │ import gleam/erlang/process
  │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^

The module `gleam/erlang/process` is being imported, but `gleam_erlang`,
the package it belongs to, is not a direct dependency of your package.
In a future version of Gleam this may become a compile error.

Run this command to add it to your dependencies:

    gleam add gleam_erlang

   Compiled in 3.69s

I haven't seen this warning in any other exercises, so I'm assuming that it's not supposed to be there.. 🙈

Gleam version I'm using:

$ gleam --version
gleam 1.0.0

sanderploegsma avatar Apr 03 '24 19:04 sanderploegsma