Skip to content

Enhance Yarn module to support workspace projects and non-registry de…#379

Merged
fluxxBot merged 1 commit into
mainfrom
RTECO-1035-yarn
May 20, 2026
Merged

Enhance Yarn module to support workspace projects and non-registry de…#379
fluxxBot merged 1 commit into
mainfrom
RTECO-1035-yarn

Conversation

@fluxxBot
Copy link
Copy Markdown
Contributor

@fluxxBot fluxxBot commented May 7, 2026

…pendencies. Added tests for workspace detection and locator protocols. Updated dependency retrieval to handle Yarn versioning more efficiently.

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • All static analysis checks passed.
  • This pull request is on the dev branch.
  • I used gofmt for formatting the code before submitting the pull request.
  • Appropriate label is added to the PR for auto generate release notes.

RTECO-1035 — Fix yarn workspace and non-registry dependency collection

Problem

Three classes of build-info collection bugs affecting yarn v2+:

  1. Workspace monorepo root install produces empty build-info. yarn info --all --recursive --json emits all deps but the root locator (s1-root@workspace:.) has no Dependencies edges
    — the walker starts at root, finds nothing, terminates. All registry deps installed by member packages are unreachable.
  2. Non-registry locators emitted as ghost dependencies with misleading warning. Deps using link:, file:, portal:, git+https:, workspace:* protocols are local/VCS sources — they
    don't exist in Artifactory. The walker attempted AQL lookup, failed, then printed "could not be found in Artifactory and therefore are not included in the build-info" for every
    such dep. Warning is incorrect — these deps are intentionally excluded.
  3. yarn --version executed twice per build. newYarnModule calls validateYarnVersion → GetVersion, then getDependenciesMap → GetYarnDependencies → GetVersion again. Redundant
    subprocess.

@fluxxBot fluxxBot added the new feature Automatically generated release notes label May 7, 2026
Comment thread build/utils/yarn.go
Comment thread build/utils/yarn.go Outdated
Comment thread build/utils/yarn.go
…n-registry dependencies. Added tests for workspace detection and locator protocols. Updated dependency retrieval to handle Yarn versioning more efficiently.
@fluxxBot fluxxBot merged commit bde5000 into main May 20, 2026
30 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new feature Automatically generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants