Skip to content

Commit 3e3b2f1

Browse files
committed
Pin prism to 1.4.0 for the project
It fails to build with the following error: src/prism.c: In function ‘context_terminator’: src/prism.c:8651:62: error: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Werror=sign-conversion] 8651 | return token->type < 32 && (context_terminators[context] & (1 << token->type)); | ^ cc1: all warnings being treated as errors
1 parent dee4ce8 commit 3e3b2f1

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ ruby.bundle_fetch(
318318
"parser-3.3.9.0": "94d6929354b1a6e3e1f89d79d4d302cc8f5aa814431a6c9c7e0623335d7687f2",
319319
"pp-0.6.2": "947ec3120c6f92195f8ee8aa25a7b2c5297bb106d83b41baa02983686577b6ff",
320320
"prettyprint-0.2.0": "2bc9e15581a94742064a3cc8b0fb9d45aae3d03a1baa6ef80922627a0766f193",
321-
"prism-1.5.2": "192741663a55af1ac1b987caa1092deb666e4ff46a30c5064ad5456acd05df1d",
321+
"prism-1.4.0": "dc0e3e00e93160213dc2a65519d9002a4a1e7b962db57d444cf1a71565bb703e",
322322
"psych-5.2.6": "814328aa5dcb6d604d32126a20bc1cbcf05521a5b49dbb1a8b30a07e580f316e",
323323
"psych-5.2.6-java": "0a5f65d47ed1ae3475d062b254e7b2035a259eac578038016d62172dd4cfbd91",
324324
"public_suffix-6.0.2": "bfa7cd5108066f8c9602e0d6d4114999a5df5839a63149d3e8b0f9c1d3558394",

rb/Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ gem 'activesupport', '~> 7.0', require: false, platforms: %i[mri mingw x64_mingw
1010
gem 'curb', '~> 1.0.5', require: false, platforms: %i[mri mingw x64_mingw]
1111
gem 'debug', '~> 1.7', require: false, platforms: %i[mri mingw x64_mingw]
1212
gem 'steep', '~> 1.5.0', require: false, platforms: %i[mri mingw x64_mingw]
13+
14+
# Prism staring with 1.5 fails to build with the following error:
15+
# src/prism.c:8651:62: error: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Werror=sign-conversion]
16+
gem 'prism', ['~> 1.0', '< 1.5']

rb/Gemfile.lock

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ GEM
8484
pp (0.6.2)
8585
prettyprint
8686
prettyprint (0.2.0)
87-
prism (1.5.2)
87+
prism (1.4.0)
8888
psych (5.2.6)
8989
date
9090
stringio
@@ -200,6 +200,7 @@ DEPENDENCIES
200200
curb (~> 1.0.5)
201201
debug (~> 1.7)
202202
git (~> 1.19)
203+
prism (~> 1.0, < 1.5)
203204
rack (~> 2.0)
204205
rake (~> 13.0)
205206
rspec (~> 3.0)

0 commit comments

Comments
 (0)