Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jmarsh24 opened this issue Jan 16, 2024 · 4 comments

Comments

@jmarsh24
Copy link

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 jmarsh24 changed the title Bundle add error Could not find gem 'sqlite-ulid' with platform 'ruby' in rubygems repository Jan 16, 2024
@jmarsh24
Copy link
Author

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
Copy link
Author

@asg017

@johnpitchko
Copy link

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

@mrbongiolo
Copy link

mrbongiolo commented Nov 3, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants