Skip to content

[ruby] Use bundler environment variables instead of flags.#14499

Merged
gscho merged 3 commits into
mainfrom
gscho/FLOW-5503-support-rubygems-4
Dec 18, 2025
Merged

[ruby] Use bundler environment variables instead of flags.#14499
gscho merged 3 commits into
mainfrom
gscho/FLOW-5503-support-rubygems-4

Conversation

@gscho

@gscho gscho commented Dec 18, 2025

Copy link
Copy Markdown
Contributor

Problem

Bundler made breaking changes to their CLI in a recent update.

In particular, the --clean, --deployment, --frozen, --no-prune, --path, --shebang, --system, --without, and --with options to bundle install.

This causes ruby builds to fail since we use some of these flags when performing a bundle install.

Solution

Add the flags to the existing bundle environment variable list.

This magic has been removed from Bundler 4, and you now explicitly need to configure it, either through environment variables, application configuration, or machine configuration.

Signed-off-by: gscho <greg.c.schofield@gmail.com>
@changeset-bot

changeset-bot Bot commented Dec 18, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d806870

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@vercel/ruby Patch
vercel Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Dec 18, 2025

Copy link
Copy Markdown
Contributor

🧪 Test Strategy

Comparing: c55475fd806870 (view diff)

Strategy: Affected packages only

✅ Only testing packages that have been modified or depend on modified packages.

Affected packages - 2 (5%)
  1. @vercel/ruby
  2. vercel
Unaffected packages - 37 (95%)
  1. @vercel-internals/get-package-json
  2. @vercel/backends
  3. @vercel/build-utils
  4. @vercel/cervel
  5. @vercel/cli-auth
  6. @vercel/client
  7. @vercel/config
  8. @vercel/detect-agent
  9. @vercel/edge
  10. @vercel/elysia
  11. @vercel/error-utils
  12. @vercel/express
  13. @vercel/fastify
  14. @vercel/firewall
  15. @vercel/frameworks
  16. @vercel/fs-detectors
  17. @vercel/functions
  18. @vercel/gatsby-plugin-vercel-builder
  19. @vercel/go
  20. @vercel/h3
  21. @vercel/hono
  22. @vercel/hydrogen
  23. @vercel/introspection
  24. @vercel/nestjs
  25. @vercel/next
  26. @vercel/node
  27. @vercel/oidc
  28. @vercel/oidc-aws-credentials-provider
  29. @vercel/python
  30. @vercel/redwood
  31. @vercel/related-projects
  32. @vercel/remix-builder
  33. @vercel/routing-utils
  34. @vercel/rust
  35. @vercel/static-build
  36. @vercel/static-config
  37. examples

Results

  • Unit tests: Only affected packages will run unit tests
  • E2E tests: Only affected packages will run e2e tests
  • Type checks: Only affected packages will run type checks

This comment is automatically generated based on the affected testing strategy

@gscho gscho changed the title Use bundler environment variables instead of flags. [ruby] Use bundler environment variables instead of flags. Dec 18, 2025
Signed-off-by: gscho <greg.c.schofield@gmail.com>
Signed-off-by: gscho <greg.c.schofield@gmail.com>
@gscho gscho marked this pull request as ready for review December 18, 2025 19:18
@gscho gscho requested a review from a team as a code owner December 18, 2025 19:18
@gscho gscho merged commit f8e79cd into main Dec 18, 2025
776 of 802 checks passed
@gscho gscho deleted the gscho/FLOW-5503-support-rubygems-4 branch December 18, 2025 21:05
onsclom pushed a commit that referenced this pull request Dec 19, 2025
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @vercel/build-utils@13.2.4

### Patch Changes

- [python] only create api builders for `.py` files that export an app
or handler ([#14493](#14493))

## vercel@50.1.3

### Patch Changes

- Run install command earlier for vercel.ts
([#14504](#14504))

- [python] only create api builders for `.py` files that export an app
or handler ([#14493](#14493))

- Remove vercel.ts feature flag
([#14501](#14501))

- Updated dependencies
\[[`f8e79cd385e3635a5d8227cb357af381b883d053`](f8e79cd),
[`c55475f865ecf22f27b8b17f6fc98b9e1455ab5d`](c55475f)]:
    -   @vercel/ruby@2.2.4
    -   @vercel/build-utils@13.2.4
    -   @vercel/python@6.1.5
    -   @vercel/backends@0.0.17
    -   @vercel/elysia@0.1.15
    -   @vercel/express@0.1.21
    -   @vercel/fastify@0.1.18
    -   @vercel/go@3.2.4
    -   @vercel/h3@0.1.24
    -   @vercel/hono@0.2.18
    -   @vercel/hydrogen@1.3.3
    -   @vercel/nestjs@0.2.19
    -   @vercel/next@4.15.9
    -   @vercel/node@5.5.16
    -   @vercel/redwood@2.4.6
    -   @vercel/remix-builder@5.5.6
    -   @vercel/rust@1.0.4
    -   @vercel/static-build@2.8.15

## @vercel/client@17.2.18

### Patch Changes

- Updated dependencies
\[[`c55475f865ecf22f27b8b17f6fc98b9e1455ab5d`](c55475f)]:
    -   @vercel/build-utils@13.2.4

## @vercel/elysia@0.1.15

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.5.16

## @vercel/express@0.1.21

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.5.16

## @vercel/fastify@0.1.18

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.5.16

## @vercel/fs-detectors@5.7.11

### Patch Changes

- [python] only create api builders for `.py` files that export an app
or handler ([#14493](#14493))

## @vercel/gatsby-plugin-vercel-builder@2.0.114

### Patch Changes

- Updated dependencies
\[[`c55475f865ecf22f27b8b17f6fc98b9e1455ab5d`](c55475f)]:
    -   @vercel/build-utils@13.2.4

## @vercel/h3@0.1.24

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.5.16

## @vercel/hono@0.2.18

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.5.16

## @vercel/nestjs@0.2.19

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/node@5.5.16

## @vercel/node@5.5.16

### Patch Changes

- Updated dependencies
\[[`c55475f865ecf22f27b8b17f6fc98b9e1455ab5d`](c55475f)]:
    -   @vercel/build-utils@13.2.4

## @vercel/python@6.1.5

### Patch Changes

- [python] only create api builders for `.py` files that export an app
or handler ([#14493](#14493))

## @vercel/ruby@2.2.4

### Patch Changes

- Replace bundle install flags with environment variables.
([#14499](#14499))

## @vercel/static-build@2.8.15

### Patch Changes

-   Updated dependencies \[]:
    -   @vercel/gatsby-plugin-vercel-builder@2.0.114

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

2 participants