Skip to content

Gem selection - Windows platform (32 vs 64) issue #2301

Closed

Description

@MSP-Greg

Due to the fact that I often test against many ruby trunk builds, my default is to install gems with the --user-install option.

While working on scripts for building fat-binary gems, and also installing them (which works correctly), it seems that if one has fat binary gems installed for both 32 & 64 bit platforms, when requiring them, the correct gem is not always chosen, and hence the require fails.

This may not be clear, so one thing this does is that 'matching' gems exist in my user gem folder. There are two entries in cache, gems, and specifications, one being x86-mingw32 and the other x64-mingw32...

Since I'm mostly familiar with RubyGems test code, I'm looking thru the require code for where the bug is. If anyone has any hints or tips, feel free to suggest where I should be looking.

See Appveyor log

Thanks, Greg

This issue is related to:

  • Network problems
  • Installing a library
  • Publishing a library
  • The command line gem
  • Other

Here are my current environment details:

RUBYGEMS VERSION: 2.7.7
RUBY VERSION: 2.5.1 (2018-03-29 patchlevel 57) [x64-mingw32]

I will abide by the code of conduct.

Activity

  1. MSP-Greg commented on Jul 6, 2018

    @MSP-Greg
    ContributorAuthor

    Fixed by PR #2339.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions