sqlite-ulid icon indicating copy to clipboard operation
sqlite-ulid copied to clipboard

Could not find gem 'sqlite-ulid' with platform 'ruby' in rubygems repository

Open justinallenmarsh opened this issue 2 years ago • 4 comments

I'm facing an issue when trying to use bundle add sqlite-ulid running the latest ruby version.

I'm on ruby version 3.2.2, arm64-darwin.

It was also happening when trying to add "sqlite-vss" vector full text search.

❯ bundle add sqlite-ulid
Fetching gem metadata from https://rubygems.org/........
Could not find gem 'sqlite-ulid' with platform 'ruby' in rubygems repository https://rubygems.org/ or installed locally.

The source contains the following gems matching 'sqlite-ulid':
  * sqlite-ulid-0.2.1.pre.alpha.12-arm64-darwin
  * sqlite-ulid-0.2.1.pre.alpha.12-x64-mingw32
  * sqlite-ulid-0.2.1.pre.alpha.12-x86_64-darwin
  * sqlite-ulid-0.2.1.pre.alpha.12-x86_64-linux
  * sqlite-ulid-0.2.1.pre.alpha.13-arm64-darwin
  * sqlite-ulid-0.2.1.pre.alpha.13-x64-mingw32
  * sqlite-ulid-0.2.1.pre.alpha.13-x86_64-darwin
  * sqlite-ulid-0.2.1.pre.alpha.13-x86_64-linux
  * sqlite-ulid-0.2.1.pre.alpha.14-arm64-darwin
  * sqlite-ulid-0.2.1.pre.alpha.14-x64-mingw32
  * sqlite-ulid-0.2.1.pre.alpha.14-x86_64-darwin
  * sqlite-ulid-0.2.1.pre.alpha.14-x86_64-linux
  * sqlite-ulid-0.2.1.pre.alpha.15-arm64-darwin
  * sqlite-ulid-0.2.1.pre.alpha.15-x64-mingw32
  * sqlite-ulid-0.2.1.pre.alpha.15-x86_64-darwin
  * sqlite-ulid-0.2.1.pre.alpha.15-x86_64-linux
  * sqlite-ulid-0.2.1.pre.alpha.17-arm64-darwin
  * sqlite-ulid-0.2.1.pre.alpha.17-x64-mingw32
  * sqlite-ulid-0.2.1.pre.alpha.17-x86_64-darwin
  * sqlite-ulid-0.2.1.pre.alpha.17-x86_64-linux
  * sqlite-ulid-0.2.1.pre.alpha.18-arm64-darwin
  * sqlite-ulid-0.2.1.pre.alpha.18-x64-mingw32
  * sqlite-ulid-0.2.1.pre.alpha.18-x86_64-darwin
  * sqlite-ulid-0.2.1.pre.alpha.18-x86_64-linux
  * sqlite-ulid-0.2.1.pre.alpha.19-arm64-darwin
  * sqlite-ulid-0.2.1.pre.alpha.19-x64-mingw32
  * sqlite-ulid-0.2.1.pre.alpha.19-x86_64-darwin
  * sqlite-ulid-0.2.1.pre.alpha.19-x86_64-linux
  * sqlite-ulid-0.2.1-arm64-darwin
  * sqlite-ulid-0.2.1-x64-mingw32
  * sqlite-ulid-0.2.1-x86_64-darwin
  * sqlite-ulid-0.2.1-x86_64-linux
  * sqlite-ulid-0.2.2.pre.alpha.1-arm64-darwin
  * sqlite-ulid-0.2.2.pre.alpha.1-x64-mingw32
  * sqlite-ulid-0.2.2.pre.alpha.1-x86_64-darwin
  * sqlite-ulid-0.2.2.pre.alpha.1-x86_64-linux

I was able to get it to bundle with gem "sqlite-ulid", platforms: :ruby_31

Any ideas what might be causing this? I had a few other friends try installing it. Those who were on ruby 3.1.4 were able to get it to install. We had mixed results. Some people were able to install it and others not.

justinallenmarsh avatar Jan 16 '24 13:01 justinallenmarsh

Steps to Reproduce ruby version: ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin23] bundler version: Bundler version 2.5.4

Gemfile

# frozen_string_literal: true

source "https://rubygems.org"

gem "sqlite-ulid"

Gemfile.lock

GEM
  remote: https://rubygems.org/
  specs:

PLATFORMS
  aarch64-linux

DEPENDENCIES

BUNDLED WITH
   2.5.4
   

justinallenmarsh avatar Jan 18 '24 19:01 justinallenmarsh

@asg017

justinallenmarsh avatar Jan 18 '24 19:01 justinallenmarsh

Hello, wanted to report encountering the same issue here. @jmarsh24 's fix seems to have worked to install the gem via bundler.

johnpitchko avatar Oct 19 '24 15:10 johnpitchko

We faced the same issue in one of our Rails projects when trying to install the gem via bundler. To solve it, we had to remove Gemfile.lock and run bundle again.

mrbongiolo avatar Nov 03 '24 00:11 mrbongiolo