ruby / ruby/forwardable

already initialized constant Forwardable::FORWARDABLE_VERSION

Open
#12 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
46
Forks
16
Avg merge
3m
Merged PRs (30d)
1

Description

Hi at forwardable,

You might want to fix this one:

/usr/local/lib/ruby/gems/2.6.0/gems/forwardable-1.3.1/lib/forwardable/version.rb:3: warning: previous definition of VERSION was here
/usr/local/lib/ruby/2.6.0/forwardable.rb:117: warning: already initialized constant Forwardable::FORWARDABLE_VERSION

It actually is the last gem in my bundle
that gives me a warning message like that.
All the other gems cleaned that up already.

Let's bring this forward!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the definitions in forwardable-1.3.1/lib/forwardable/version.rb and /usr/local/lib/ruby/2.6.0/forwardable.rb, using the warning locations in the report. Reproduce the load scenario and confirm that the duplicate constant warning no longer appears.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.