Skip to content

Conversation

Copy link

Copilot AI commented Nov 22, 2025

Description

Renovate fails with npm error Unsupported URL Type "link:" when processing dependencies. Root cause: frontend/eslint.config.mjs and backend/eslint.config.mjs import from ../eslint-base.config.mjs, creating cross-directory dependencies that npm interprets as deprecated link: protocol references.

Fixes link deprecation issue reported by Renovate.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • No new tests are required
  • Manual tests (description below)

Manual verification:

  • Frontend: npm run lint and npm run build
  • Backend: npm run lint and npm run build

Checklist

  • I have read the CONTRIBUTING doc
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have already been accepted and merged

Further comments

Changes:

  • Inlined baseIgnores and baseRules from eslint-base.config.mjs into both ESLint configs
  • Each package now self-contained without external file imports

Before:

import { baseRules, baseIgnores } from '../eslint-base.config.mjs';

After:

const baseIgnores = [
  '**/vite.config.*',
  '**/vitest.config.*',
  // ... rest inlined
];

const baseRules = {
  'prettier/prettier': 'error',
  // ... rest inlined
};

Trade-off: Configuration duplication for dependency isolation. The shared config file remains for reference but is no longer imported.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • checkpoint.prisma.io
    • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/quickstart-openshift/quickstart-openshift/backend/node_modules/prisma/build/child {"product":"prisma","version":"6.18.0","cli_install_type":"local","information":"","local_timestamp":"2025-11-22T18:49:50Z","project_hash":"65cbeaa9","cli_path":"/home/REDACTED/work/quickstart-openshift/quickstart-openshift/backend/node_modules/.bin/prisma" (dns block)
    • Triggering command: /usr/local/bin/node /usr/local/bin/node /home/REDACTED/work/quickstart-openshift/quickstart-openshift/backend/node_modules/prisma/build/child {"product":"prisma","version":"6.18.0","cli_install_type":"local","information":"","local_timestamp":"2025-11-22T18:50:20Z","project_hash":"65cbeaa9","cli_path":"/home/REDACTED/work/quickstart-openshift/quickstart-openshift/backend/node_modules/.bin/prisma" (dns block)
  • scarf.sh
    • Triggering command: /usr/local/bin/node node ./report.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>chore: fix link deprecation</issue_title>
<issue_description>Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

any of the package files in this branch needs updating, or
the branch becomes conflicted, or
you click the rebase/retry checkbox if found above, or
you rename this PR's title to start with "rebase!" to trigger it manually
The artifact failure details are included below:

File name: frontend/package-lock.json
npm warn Unknown env config "store". This will stop working in the next major version of npm.
npm error code EUNSUPPORTEDPROTOCOL
npm error Unsupported URL Type "link:": link:
npm error A complete log of this run can be found in: /runner/cache/others/npm/_logs/2025-06-18T03_51_03_062Z-debug-0.log
</issue_description>

<agent_instructions>https://github.com/bcgov/copilot-instructions/blob/main/.github/copilot-upstream.md</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: DerekRoberts <4391600+DerekRoberts@users.noreply.github.com>
@socket-security
Copy link

socket-security bot commented Nov 22, 2025

Co-authored-by: DerekRoberts <4391600+DerekRoberts@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix link deprecation and update artifacts chore: eliminate cross-directory imports in ESLint configs Nov 22, 2025
Copilot AI requested a review from DerekRoberts November 22, 2025 18:54
Copilot finished work on behalf of DerekRoberts November 22, 2025 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

chore: fix link deprecation

2 participants