Skip to content

Conversation

@thesandlord
Copy link
Contributor

@thesandlord thesandlord commented Jan 9, 2026

Description

Refs https://github.com/nominal-io/fern-docs/pull/616

Fixes protobuf IR generation failing in air-gapped/self-hosted environments where buf dep update cannot reach the Buf Schema Registry (buf.build).

Changes Made

  • Include buf.lock when copying protobuf files to temp directory (previously explicitly excluded)
  • Skip buf dep update network call if a cached buf.lock file already exists
  • Added changelog entry for version 3.37.4

This enables self-hosted deployments to work in air-gapped environments by running buf dep update at Docker build time to cache dependencies.

Testing

  • Unit tests added/updated
  • Manual testing completed (lint/format checks pass)

Human Review Checklist

  • Verify the logic: if buf.lock exists → skip network call; if not → run buf dep update
  • Consider if there should be a way to force refresh dependencies even when buf.lock exists
  • Consider edge cases where cached buf.lock might be stale or incompatible with current deps

Requested by: @thesandlord
Link to Devin run: https://app.devin.ai/sessions/eadc0db42eec4a538a5f0b4394cc682c

- Include buf.lock when copying protobuf files to temp directory
- Try buf dep update first, fallback to cached buf.lock if it fails
- Error with helpful message if no cached buf.lock exists

Co-Authored-By: Sandeep Dinesh <[email protected]>
@devin-ai-integration
Copy link
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants