Skip to content
Snippets Groups Projects
Closed Previous definition warnings from require statements
  • View options
  • Previous definition warnings from require statements

  • View options
  • Closed Issue created by Stan Hu

    When I start up the GDK, I see these warnings:

    16:35:50 rails-background-jobs.1 | /Users/stanhu/gitlab/gdk/gitlab/lib/gitlab/email/handler.rb:7: warning: already initialized constant Gitlab::Email::Handler::HANDLERS
    16:35:50 rails-background-jobs.1 | /Users/stanhu/gitlab/gdk/gitlab/lib/gitlab/email/handler.rb:7: warning: previous definition of HANDLERS was here
    16:35:50 rails-background-jobs.1 | /Users/stanhu/gitlab/gdk/gitlab/lib/gitlab/request_profiler.rb:5: warning: already initialized constant Gitlab::RequestProfiler::PROFILES_DIR
    16:35:50 rails-background-jobs.1 | /Users/stanhu/gitlab/gdk/gitlab/lib/gitlab/request_profiler.rb:5: warning: previous definition of PROFILES_DIR was here

    In both cases, we have require statements where we might already be eager loading these classes.

    /cc: @godfat, @ahmadsherif

    Linked items 0

  • Link items together to show that they're related or that one is blocking others.

    Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading