asg017 / sqlite-ulid

A SQLite extension for generating and working with ULIDs
Apache License 2.0
135 stars 8 forks source link

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

Open jmarsh24 opened 10 months ago

jmarsh24 commented 10 months ago

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.

jmarsh24 commented 10 months ago

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
jmarsh24 commented 10 months ago

@asg017

johnpitchko commented 1 month ago

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

mrbongiolo commented 3 weeks ago

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.