Commit Graph

33 Commits

Author SHA1 Message Date
Sebastian Poxhofer 5ad36a2387 test(linters): add linting rule to enforce usage of host rules test util (#44692)
* ci(linter): add renovate/no-host-rules-mock rule

Flags vi.mock()/vi.doMock() calls whose module specifier contains
"host-rules" in spec files. Tests should configure real rules via
hostRules.add() instead of mocking the host-rules module.

Enabled at "warn" severity instead of "error": the repo currently has
35 pre-existing violations across 34 spec files, which exceeds the
agreed fix threshold of 12 files. No violation fixes are included;
migrating each spec to real hostRules.add()/clear() setup is a
semantic test rewrite that should be done incrementally, after which
the rule can be promoted to "error".

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* ci(linter): enforce renovate/no-host-rules-mock at error

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* test(datasource): use real host-rules instead of mocking

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* test(manager): use real host-rules instead of mocking

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* test(platform): use real host-rules instead of mocking

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* test(util,workers): use real host-rules instead of mocking

Also narrow renovate/no-host-rules-mock to the host-rules module itself so that mocking e.g. host-rules-from-env is not flagged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* ci(linter): mention '~test/host-rules.ts' util in no-host-rules-mock message

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-19 10:36:12 +00:00
Sergei Zharinov 9d857c1f68 refactor(lint): Organize imports with biome (#40966) 2026-02-06 13:40:01 +00:00
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
Michael Kriese 13b4344f9b feat(datasource/go): improve source URL detection and fix direct sources (#37915) 2025-09-09 14:08:36 +00:00
Kyle Welch 99669a6fa4 fix(datasource/go): support submodules in gitlab repo (#36963)
Co-authored-by: Kyle Welch <$(git config user.email)>
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2025-08-13 15:02:52 +00:00
Michael Kriese 19c115c813 test: cleanup (#34785) 2025-03-13 17:52:09 +00:00
Michael Kriese 1644d9cb18 test: migrate more to vitest (#34500) 2025-02-26 15:45:17 +00:00
Michael Kriese 997c23502e test: migrate to vitest (#34475)
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
2025-02-26 09:35:54 +00:00
Michael Kriese 85dd14938a feat(datasource/go): support gitea tags (#32555) 2024-11-15 08:52:37 +00:00
malmor 209a1621a0 fix(datasource/go): Remove .git suffix for go dependencies when calling go-get api (#32181)
Signed-off-by: malmor <62105800+malmor@users.noreply.github.com>
2024-10-29 16:45:00 +00:00
Sergei Zharinov 6899eb0135 fix(go): Revert private module URL changes (#31055) 2024-08-27 19:21:13 +00:00
Sergei Zharinov 7143d6dc09 fix(go): Detect repository name from the metadata URL instead of module (#30388) 2024-08-02 07:02:08 +00:00
Sergei Zharinov 9ae694020d refactor(go): Tidy datasource code (#30335)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-07-25 14:29:03 +00:00
Manuel Blechschmidt 158fa38a5c fix(datasource/go): don't strip api/ from packageName on gitlab (#27635)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-02-29 15:59:33 +00:00
jsperling-schwarz 88860db2cb fix(datasource/go): private repositories on azure (#26984)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-02-29 15:55:20 +00:00
Manuel Blechschmidt 8706b77123 fix(datasource/go): Remove .git/v2 in go package name to retrieve it correctly (#27569) 2024-02-27 04:58:36 +00:00
Manuel Blechschmidt 54a0233096 fix(datasource/go): Fixes splitting of gitlab go package name (#26477)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-01-10 16:21:51 +00:00
Sergei Zharinov b69416ce17 refactor(prettier): Force trailing commas (#25631) 2023-11-07 15:50:29 +00:00
Silvestre Zabala 9c8e6accbe feat(go): Add support for Go host code.cloudfoundry.org (#25173) 2023-10-13 18:31:41 +00:00
Sergei Zharinov e50499762b fix(go): Ignore mod type of go-import header (#25039) 2023-10-04 18:53:04 +00:00
Michael Kriese 84a97a62fa test(perf): improve test speed (#24323) 2023-09-08 11:40:04 +00:00
Hilário Coelho 8cc08e0660 fix(azure): go-import meta header support for Azure DevOps (#22664)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2023-06-11 16:58:46 +00:00
RahulGautamSingh 938a36801e refactor: replace test.each with it.each (#21859) 2023-04-28 04:33:15 +00:00
RahulGautamSingh c56588eaba refactor: convert PlatformmId to union (#18458) 2022-11-01 14:46:09 +00:00
Thomas a446c2bc6d fix(go)!: Fallback to git-tags instead of github-tags (#18060)
Changes go datasource fallback from github tags to git tags.

Closes #17923

BREAKING CHANGE: git-tags will be used instead of github-tags if a go package's host type is unknown.

Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-10-23 06:48:35 +02:00
Bastian 4ba04b47c4 fix(gomod): explicitly match Gitlab ID for gitlab enterprise servers (#17611) 2022-09-04 16:49:31 +00:00
Bastian 2bfe93ab19 fix(gomod): support .git indicator on private ee gitlab (#17105)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-08-17 05:38:22 +00:00
Thorsten Essig 5bbb4c6054 fix(datasource/go): consider all available datasources for go-import (#16544)
* fix(16543): consider all available datasources for go-import

* fix(datasource/go): add test for go-import with gitlab datasource

* refactor: rename param to reduce diff

* fix(datasource/go): return early on datasource detection

Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-07-27 09:13:39 +02:00
Jamie Magee 3589d0e222 refactor: remove deprecated loadFixture calls (#16404)
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-07-04 04:18:53 +00:00
StinkyLord 200d98e67d fix(datasource/go): fix parsing go-source and go-import without quotation (#15402)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-05-10 05:55:25 +00:00
eSamS 1da46b0672 fix(go): allow go modules in gitlab subgroups (#14831)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2022-04-08 08:16:46 +00:00
Rhys Arkins 143c9a6751 refactor: rename lookupName -> packageName (#14494)
Renames `lookupName` to be `packageName`.

BREAKING CHANGE: Use `packageName` instead of `lookupName` if interacting with Renovate datasources directly.
2022-03-04 09:04:02 +01:00
Rhys Arkins dca3418bbd refactor: lib/modules (#14488)
Moves datasource, manager, platform and versioning code from lib/ into new lib/modules/

BREAKING CHANGE: External tools must update paths to datasource, manager, platform and versioning
2022-03-04 09:04:02 +01:00