Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usage of deprecated hunt.logging.ConsoleLogger causes compilation failure #3

Open
baryluk opened this issue Apr 23, 2022 · 1 comment

Comments

@baryluk
Copy link

baryluk commented Apr 23, 2022

When compiling hunt-skeleton @ 664fa18a5401cfa6a38088d1d5d74c936a88a477 with dub and gdc, I got this:

../.dub/packages/hunt-redis-1.4.1/hunt-redis/source/hunt/redis/HostAndPort.d:15:8: error: module ‘hunt.logging.ConsoleLogger’ is deprecated - Using hunt.logging.Logger instead. [-Werror=deprecated]
   15 | import hunt.logging.ConsoleLogger;
      |        ^
../.dub/packages/hunt-redis-1.4.1/hunt-redis/source/hunt/redis/util/RedisInputStream.d:17:8: error: module ‘hunt.logging.ConsoleLogger’ is deprecated - Using hunt.logging.Logger instead. [-Werror=deprecated]
   17 | import hunt.logging.ConsoleLogger;
      |        ^
../.dub/packages/hunt-redis-1.4.1/hunt-redis/source/hunt/redis/util/RedisOutputStream.d:15:8: error: module ‘hunt.logging.ConsoleLogger’ is deprecated - Using hunt.logging.Logger instead. [-Werror=deprecated]
   15 | import hunt.logging.ConsoleLogger;
      |        ^
../.dub/packages/hunt-redis-1.4.1/hunt-redis/source/hunt/redis/BuilderFactory.d:29:8: error: module ‘hunt.logging.ConsoleLogger’ is deprecated - Using hunt.logging.Logger instead. [-Werror=deprecated]
   29 | import hunt.logging.ConsoleLogger;
      |        ^
../.dub/packages/hunt-redis-1.4.1/hunt-redis/source/hunt/redis/util/IOUtils.d:15:8: error: module ‘hunt.logging.ConsoleLogger’ is deprecated - Using hunt.logging.Logger instead. [-Werror=deprecated]
   15 | import hunt.logging.ConsoleLogger;
      |        ^
../.dub/packages/hunt-redis-1.4.1/hunt-redis/source/hunt/redis/AbstractClient.d:27:8: error: module ‘hunt.logging.ConsoleLogger’ is deprecated - Using hunt.logging.Logger instead. [-Werror=deprecated]
   27 | import hunt.logging.ConsoleLogger;
      |        ^
../.dub/packages/hunt-redis-1.4.1/hunt-redis/source/hunt/redis/Transaction.d:19:8: error: module ‘hunt.logging.ConsoleLogger’ is deprecated - Using hunt.logging.Logger instead. [-Werror=deprecated]
   19 | import hunt.logging.ConsoleLogger;
      |        ^
../.dub/packages/hunt-redis-1.4.1/hunt-redis/source/hunt/redis/Redis.d:65:8: error: module ‘hunt.logging.ConsoleLogger’ is deprecated - Using hunt.logging.Logger instead. [-Werror=deprecated]
   65 | import hunt.logging.ConsoleLogger;
      |        ^
../.dub/packages/hunt-redis-1.4.1/hunt-redis/source/hunt/redis/RedisPool.d:25:8: error: module ‘hunt.logging.ConsoleLogger’ is deprecated - Using hunt.logging.Logger instead. [-Werror=deprecated]
   25 | import hunt.logging.ConsoleLogger;
      |        ^
../.dub/packages/hunt-redis-1.4.1/hunt-redis/source/hunt/redis/RedisClusterInfoCache.d:28:8: error: module ‘hunt.logging.ConsoleLogger’ is deprecated - Using hunt.logging.Logger instead. [-Werror=deprecated]
   28 | import hunt.logging.ConsoleLogger;
      |        ^
../.dub/packages/hunt-redis-1.4.1/hunt-redis/source/hunt/redis/RedisClusterConnectionHandler.d:23:8: error: module ‘hunt.logging.ConsoleLogger’ is deprecated - Using hunt.logging.Logger instead. [-Werror=deprecated]
   23 | import hunt.logging.ConsoleLogger;
      |        ^
../.dub/packages/hunt-redis-1.4.1/hunt-redis/source/hunt/redis/RedisLock.d:25:8: error: module ‘hunt.logging.ConsoleLogger’ is deprecated - Using hunt.logging.Logger instead. [-Werror=deprecated]
   25 | import hunt.logging.ConsoleLogger;
      |        ^
../.dub/packages/hunt-redis-1.4.1/hunt-redis/source/hunt/redis/RedisSentinelPool.d:25:8: error: module ‘hunt.logging.ConsoleLogger’ is deprecated - Using hunt.logging.Logger instead. [-Werror=deprecated]
   25 | import hunt.logging.ConsoleLogger;
      |        ^
../.dub/packages/hunt-redis-1.4.1/hunt-redis/source/hunt/redis/BinaryShardedRedis.d:76:28: error: module ‘hunt.logging.ConsoleLogger’ is deprecated - Using hunt.logging.Logger instead. [-Werror=deprecated]
   76 |                     import hunt.logging.ConsoleLogger;
      |                            ^

Deprecation, but something enables treating deprecation as errors, and these leads to compilation failure:

gcc version 12.0.1 20220319 (experimental) [master r12-7719-g8ca61ad148f] (Debian 12-20220319-1) 

DUB version 1.27.0-2, built on Nov  8 2021
@baryluk
Copy link
Author

baryluk commented Apr 23, 2022

user@debian:~/.dub/packages/hunt-redis-1.4.1/hunt-redis/source/hunt/redis$ find -type f  -exec sed -i -e 's/hunt.logging.ConsoleLogger/hunt.logging.Logger/g' '{}' ';'

Does appear to resolve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant