Skip to content

Conversation

@blackgirlbytes
Copy link
Contributor

Summary

Fixes the docs build failure introduced by the previous globby fix (#6636).

Problem

The previous fix used:

const globby = (await import('globby')).default;

But globby v13 has no default export - it uses named exports:

export const globby = ...  // named export, not default

This worked locally because some environments had globby v11 cached (which does have a default export), but CI installs v13 fresh.

Fix

const { globby } = await import('globby');

Files Changed

  • documentation/scripts/generate-docs-map.js
  • documentation/plugins/markdown-export.cjs

globby v13+ uses named exports, not a default export.
The previous fix used `.default` which doesn't exist in v13.

Change from:
  const globby = (await import('globby')).default;
To:
  const { globby } = await import('globby');
@blackgirlbytes blackgirlbytes requested a review from a team as a code owner January 22, 2026 17:04
Copilot AI review requested due to automatic review settings January 22, 2026 17:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a documentation build failure by correcting the import statement for globby v13, which uses named exports instead of default exports.

Changes:

  • Updated globby import from .default destructuring to named import syntax in two files

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
documentation/scripts/generate-docs-map.js Changed globby import to use named import syntax
documentation/plugins/markdown-export.cjs Changed globby import to use named import syntax

@github-actions
Copy link
Contributor

PR Preview Action v1.6.3

🚀 View preview at
https://block.github.io/goose/pr-preview/pr-6639/

Built to branch gh-pages at 2026-01-22 17:09 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@blackgirlbytes blackgirlbytes merged commit 39fee21 into main Jan 22, 2026
26 checks passed
@blackgirlbytes blackgirlbytes deleted the fix/globby-named-export branch January 22, 2026 17:34
lifeizhou-ap added a commit that referenced this pull request Jan 22, 2026
* main:
  docs: ml-based prompt injection detection (#6627)
  Strip the audience for compacting (#6646)
  chore(release): release version 1.21.0 (minor) (#6634)
  add collapsable chat nav (#6649)
  fix: capitalize Rust in CONTRIBUTING.md (#6640)
  chore(deps): bump lodash from 4.17.21 to 4.17.23 in /ui/desktop (#6623)
  Vibe mcp apps (#6569)
  Add session forking capability (#5882)
  chore(deps): bump lodash from 4.17.21 to 4.17.23 in /documentation (#6624)
  fix(docs): use named import for globby v13 (#6639)
  PR Code Review (#6043)
  fix(docs): use dynamic import for globby ESM module (#6636)
  chore: trigger CI
  Document tab completion (#6635)
  Install goose-mcp crate dependencies (#6632)
  feat(goose): standardize agent-session-id for session correlation (#6626)
fbalicchia pushed a commit to fbalicchia/goose that referenced this pull request Jan 23, 2026
Signed-off-by: fbalicchia <fbalicchia@cuebiq.com>
tlongwell-block added a commit that referenced this pull request Jan 23, 2026
* origin/main:
  Fix GCP Vertex AI global endpoint support for Gemini 3 models (#6187)
  fix: macOS keychain infinite prompt loop    (#6620)
  chore: reduce duplicate or unused cargo deps (#6630)
  feat: codex subscription support (#6600)
  smoke test allow pass for flaky providers (#6638)
  feat: Add built-in skill for goose documentation reference (#6534)
  Native images (#6619)
  docs: ml-based prompt injection detection (#6627)
  Strip the audience for compacting (#6646)
  chore(release): release version 1.21.0 (minor) (#6634)
  add collapsable chat nav (#6649)
  fix: capitalize Rust in CONTRIBUTING.md (#6640)
  chore(deps): bump lodash from 4.17.21 to 4.17.23 in /ui/desktop (#6623)
  Vibe mcp apps (#6569)
  Add session forking capability (#5882)
  chore(deps): bump lodash from 4.17.21 to 4.17.23 in /documentation (#6624)
  fix(docs): use named import for globby v13 (#6639)
  PR Code Review (#6043)
  fix(docs): use dynamic import for globby ESM module (#6636)

# Conflicts:
#	Cargo.lock
#	crates/goose-server/src/routes/session.rs
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.

3 participants