[PR #1346] [CLOSED] fix: dependency for nixos build #9899

Closed
opened 2026-02-16 18:14:21 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1346
Author: @RingOfStorms
Created: 7/26/2025
Status: Closed

Base: devHead: fix-dependency


📝 Commits (2)

📊 Changes

2 files changed (+2 additions, -0 deletions)

View changed files

📝 bun.lock (+1 -0)
📝 packages/opencode/package.json (+1 -0)

📄 Description

octokit/rest is a required dependency in open code. The Nix package filters on opencode dependencies so it is impossible to build the latest versions of opencode now. This change fixed it for me. I haven't figured out what commit/change caused the nix package to fail. To me it looks like more packages are missing than just this one, but it works with only this change so I am just PR'ing this in hopes to not need to do this on a fork forever.

┃        > 6 | import { Octokit } from "@octokit/rest"
┃        >                             ^
┃        > error: Could not resolve: "@octokit/rest". Maybe you need to "bun install"?
┃        >     at /build/source/packages/opencode/src/cli/cmd/github.ts:6:25

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1346 **Author:** [@RingOfStorms](https://github.com/RingOfStorms) **Created:** 7/26/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix-dependency` --- ### 📝 Commits (2) - [`afb26ea`](https://github.com/anomalyco/opencode/commit/afb26eac302bd5b2bf6741df9424d19b89295565) fix deps - [`ed11f47`](https://github.com/anomalyco/opencode/commit/ed11f47de5933e57ff1b53ffd34d6f8b23f304bc) move rest into normal deps ### 📊 Changes **2 files changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `bun.lock` (+1 -0) 📝 `packages/opencode/package.json` (+1 -0) </details> ### 📄 Description octokit/rest is a required dependency in open code. The Nix package [filters on opencode dependencies](https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/by-name/op/opencode/package.nix#L84) so it is impossible to build the latest versions of opencode now. This change fixed it for me. I haven't figured out what commit/change caused the nix package to fail. To me it looks like more packages are missing than just this one, but it works with only this change so I am just PR'ing this in hopes to not need to do this on a fork forever. ``` ┃ > 6 | import { Octokit } from "@octokit/rest" ┃ > ^ ┃ > error: Could not resolve: "@octokit/rest". Maybe you need to "bun install"? ┃ > at /build/source/packages/opencode/src/cli/cmd/github.ts:6:25 ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:21 -05:00
yindo closed this issue 2026-02-16 18:14:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9899