Comments (6)
What Linux distro is that?
from rules_ruby.
Ubuntu 20.04.6 LTS
uname -a
Linux system76-pc 5.18.10-76051810-generic #202207071639~1659403207~20.04~cb5f582~dev-Ubuntu SMP PREEMPT_DY x86_64 x86_64 x86_64 GNU/Linux
from rules_ruby.
I tried installing using bare Ubuntu 20.04 Docker image and it worked fine:
$ docker run --platform=linux/amd64 -v $(pwd):/rules_ruby -ti ubuntu:20.04 bash
$ uname -a
Linux 6d3c0a69477d 6.4.16-linuxkit #1 SMP PREEMPT Wed Oct 25 16:32:24 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
# Bazelisk
$ apt-get update -y && apt-get install -y wget && wget https://github.com/bazelbuild/bazelisk/releases/download/v1.19.0/bazelisk-linux-amd64 -O /usr/local/bin/bazel && chmod +x /usr/local/bin/bazel
# Ruby deps
$ apt-get install -y build-essential libz-dev libyaml-dev perl
$ cd /rules_ruby/examples/gem
$ echo "3.0.6" > .ruby-version
$ RUBY_RULES_DEBUG=1 bazel build ...
...
INFO: Build completed successfully, 31 total actions
Shall I use some other Docker image to try and reproduce?
from rules_ruby.
I imagine you'd want an image that already has ruby installed on the system.
from rules_ruby.
I've installed Ruby 2.7 using apt-get and still could get the toolchain to install w/o problems. How did you install your Ruby?
from rules_ruby.
I have no idea, maybe with the system or from some transitive effect of apt-get install
- lots of tooling wants a ruby interpreter.
If we can't reproduce then let's wait to see if users report it?
from rules_ruby.
Related Issues (20)
- `rb_binary` does not work unless Gemfile is listed as transitive srcs
- Support bzlmod
- rb_binary should work as the tool in a run_binary HOT 1
- bundler downloads gem dependencies rather than Bazel downloader HOT 44
- bzlmod users should get a default toolchain registration HOT 5
- Tech debt: CI bzlmod testing ignores ruby_version.bzl HOT 1
- Only download gems needed for the targets I request
- rubocop failure on Windows due to line endings HOT 4
- Dependency Dashboard
- Provide a hermetic bundle command HOT 12
- Document how to use "pre-built binary" gems to avoid install-time non-hermeticity HOT 3
- Enable the ability to run a binary manually HOT 2
- Support gems installed from Git repositories in `rb_bundle_fetch(...)`
- Support CHECKSUMS for Bundler 2.5.0 in `rb_bundle_fetch(...)`
- Long filepath issue on Windows
- toolchain/gem binary quirks HOT 10
- Generate convenience target alongside binary.sh target that changes the current working directory HOT 1
- Error downloading toolchain using bazelmod HOT 17
- using "system" ruby fails as bazel is unable to access `@@rules_ruby~~ruby~ruby//:dist/bin/sudo` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rules_ruby.