renovate icon indicating copy to clipboard operation
renovate copied to clipboard

Renovate not honoring gomodUpdateImportPaths with major version upgrades

Open nsheaps opened this issue 2 years ago • 9 comments

How are you running Renovate?

Self-hosted

If you're self-hosting Renovate, tell us what version of Renovate you run.

34.73.3

If you're self-hosting Renovate, select which platform you are using.

GitHub Enterprise Server

If you're self-hosting Renovate, tell us what version of the platform you run.

Github Enteprise Server v3.4.9

Was this something which used to work for you, and then stopped?

It used to work, and then stopped

Describe the bug

Repro'd with github's renovate app: https://github.com/nsheaps/golang-renovate-example/pull/3/files Potential PR that introduced this: https://github.com/renovatebot/renovate/pull/19112 Renovate on-prem auto-updated from v34.63.2. Renovate tried to bump go package gopkg.in/yaml.v2 @ v2.4.0 to 3.0.1

Prior to renovate being updated, renovate would not propose this update. Based on the config (in the shared reproduction repro), we would expect the imports to be updated too.

Not only did the repro not bump the imports, but it also didn't update the go.mod or go.sum file to the mentioned version in the PR

Relevant debug logs

No logs because our security policy is that our internal repo names are private data, but repro'd in public github

Have you created a minimal reproduction repository?

I have linked to a minimal reproduction repository in the bug description

nsheaps avatar Dec 28 '22 18:12 nsheaps

Reproduction forked to https://github.com/renovate-reproductions/19601

rarkins avatar Dec 29 '22 08:12 rarkins

Debug logs for the reproduction repo are important here

rarkins avatar Dec 29 '22 08:12 rarkins

Hey Rarkins, since this can be reproduced with the public version, would you be able to grab debug logs from the cloud instance?

nsheaps avatar Jan 03 '23 14:01 nsheaps

Logs are at app.renovatebot.com

rarkins avatar Jan 03 '23 14:01 rarkins

Ah great, sorry not used to having the webapp for that, here they are. PR nsheaps/golang-renovate-example#3 is the one that was opened for the upgrade

== logs removed to reduce confusion ==

nsheaps avatar Jan 03 '23 15:01 nsheaps

You need to capture the logs at the time the commit is made, so that the go commands and output can be seen. You can do this by ticking the rebase/retry checkbox and then looking at the logs once that's complete.

rarkins avatar Jan 03 '23 15:01 rarkins

Sorry about that, I thought I had grabbed the right one, here's the logs from the forced run:

DEBUG: No dangling containers to remove
INFO: Repository started
{
  "renovateVersion": "34.81.0"
}
DEBUG: Using localDir: /mnt/renovate/gh/nsheaps/golang-renovate-example
DEBUG: PackageFiles.clear() - Package files deleted
DEBUG: initRepo("nsheaps/golang-renovate-example")
DEBUG: Using queue: host=api.github.com, concurrency=10
DEBUG: nsheaps/golang-renovate-example default branch = main
DEBUG: Using app token for git init
DEBUG: Repository cache is restored from revision 13
DEBUG: Resetting npmrc
DEBUG: checkOnboarding()
DEBUG: isOnboarded()
DEBUG: Checking cached config file name
DEBUG: Existing config file confirmed
DEBUG: Repository config
{
  "fileName": "renovate.json",
  "config": {
    "$schema": "https://docs.renovatebot.com/renovate-schema.json",
    "extends": [
      "config:base"
    ],
    "branchPrefix": "renovate-",
    "enabled": true,
    "timezone": "America/Los_Angeles",
    "semanticCommits": "enabled",
    "dependencyDashboard": true,
    "dependencyDashboardTitle": "Renovate Dashboard 🤖",
    "onboardingPrTitle": "build(renovate): Renovate Onboarding PR 🤖",
    "onboardingBranch": "renovate-configure",
    "rebaseWhen": "auto",
    "prCreation": "immediate",
    "commitMessageTopic": "{{depName}}",
    "commitMessageExtra": "to {{newVersion}}",
    "commitMessageSuffix": "",
    "postUpdateOptions": [
      "gomodUpdateImportPaths",
      "gomodTidy",
      "npmDedupe",
      "yarnDedupeFewer"
    ],
    "fetchReleaseNotes": true
  }
}
DEBUG: Repo is onboarded
DEBUG: migrateAndValidate()
DEBUG: No config migration necessary
DEBUG: massaged config
{
  "config": {
    "$schema": "https://docs.renovatebot.com/renovate-schema.json",
    "extends": [
      "github>whitesource/merge-confidence:beta",
      "config:base"
    ],
    "branchPrefix": "renovate-",
    "enabled": true,
    "timezone": "America/Los_Angeles",
    "semanticCommits": "enabled",
    "dependencyDashboard": true,
    "dependencyDashboardTitle": "Renovate Dashboard 🤖",
    "onboardingPrTitle": "build(renovate): Renovate Onboarding PR 🤖",
    "onboardingBranch": "renovate-configure",
    "rebaseWhen": "auto",
    "prCreation": "immediate",
    "commitMessageTopic": "{{depName}}",
    "commitMessageExtra": "to {{newVersion}}",
    "commitMessageSuffix": "",
    "postUpdateOptions": [
      "gomodUpdateImportPaths",
      "gomodTidy",
      "npmDedupe",
      "yarnDedupeFewer"
    ],
    "fetchReleaseNotes": true
  }
}
DEBUG: migrated config
{
  "config": {
    "$schema": "https://docs.renovatebot.com/renovate-schema.json",
    "extends": [
      "github>whitesource/merge-confidence:beta",
      "config:base"
    ],
    "branchPrefix": "renovate-",
    "enabled": true,
    "timezone": "America/Los_Angeles",
    "semanticCommits": "enabled",
    "dependencyDashboard": true,
    "dependencyDashboardTitle": "Renovate Dashboard 🤖",
    "onboardingPrTitle": "build(renovate): Renovate Onboarding PR 🤖",
    "onboardingBranch": "renovate-configure",
    "rebaseWhen": "auto",
    "prCreation": "immediate",
    "commitMessageTopic": "{{depName}}",
    "commitMessageExtra": "to {{newVersion}}",
    "commitMessageSuffix": "",
    "postUpdateOptions": [
      "gomodUpdateImportPaths",
      "gomodTidy",
      "npmDedupe",
      "yarnDedupeFewer"
    ],
    "fetchReleaseNotes": true
  }
}
DEBUG: Setting hostRules from config
DEBUG: Found repo ignorePaths
{
  "ignorePaths": [
    "**/node_modules/**",
    "**/bower_components/**",
    "**/vendor/**",
    "**/examples/**",
    "**/__tests__/**",
    "**/test/**",
    "**/tests/**",
    "**/__fixtures__/**"
  ]
}
DEBUG: Using queue: host=api.github.com, concurrency=10
DEBUG: No vulnerability alerts found
DEBUG: No vulnerability alerts found
DEBUG: findIssue(Renovate Dashboard 🤖)
DEBUG: Retrieving issueList
DEBUG: Retrieved 1 issues
DEBUG: Found issue 2
DEBUG: No baseBranches
DEBUG: extract()
DEBUG: Cached extract for sha=a3d6df48edacbd8e4b21a0d254110132d0eea1e4 is valid and can be used
DEBUG: Deleted cached dep updates
INFO: Dependency extraction complete
{
  "baseBranch": "main",
  "stats": {
    "managers": {
      "gomod": {
        "fileCount": 1,
        "depCount": 2
      }
    },
    "total": {
      "fileCount": 1,
      "depCount": 2
    }
  }
}
DEBUG: PackageFiles.add() - Package file saved for base branch
{
  "baseBranch": "main"
}
DEBUG: Package releases lookups complete
{
  "baseBranch": "main"
}
DEBUG: branchifyUpgrades
DEBUG: 1 flattened updates found: gopkg.in/yaml.v2
DEBUG: Returning 1 branch(es)
DEBUG: config.repoIsOnboarded=true
DEBUG: packageFiles with updates
{
  "baseBranch": "main",
  "config": {
    "gomod": [
      {
        "deps": [
          {
            "currentValue": "1.19",
            "currentVersion": "1.19.4",
            "datasource": "golang-version",
            "depIndex": 0,
            "depName": "go",
            "depType": "golang",
            "homepage": "https://go.dev/",
            "managerData": {
              "lineNumber": 2
            },
            "rangeStrategy": "replace",
            "registryUrl": "https://raw.githubusercontent.com/golang/website",
            "sourceUrl": "https://github.com/golang/go",
            "versioning": "go-mod-directive",
            "warnings": [],
            "updates": []
          },
          {
            "currentValue": "v2.4.0",
            "currentVersion": "v2.4.0",
            "datasource": "go",
            "depIndex": 1,
            "depName": "gopkg.in/yaml.v2",
            "depType": "require",
            "fixedVersion": "v2.4.0",
            "isSingleVersion": true,
            "managerData": {
              "lineNumber": 5,
              "multiLine": true
            },
            "sourceUrl": "https://github.com/go-yaml/yaml",
            "versioning": "semver",
            "warnings": [],
            "updates": [
              {
                "bucket": "major",
                "newVersion": "v3.0.1",
                "newValue": "v3.0.1",
                "releaseTimestamp": "2022-05-27T08:35:30.000Z",
                "newMajor": 3,
                "newMinor": 0,
                "updateType": "major",
                "branchName": "renovate-gopkg.in-yaml.v2-3.x"
              }
            ]
          }
        ],
        "packageFile": "go.mod"
      }
    ]
  }
}
DEBUG: processRepo()
DEBUG: Processing 1 branch: renovate-gopkg.in-yaml.v2-3.x
DEBUG: Calculating hourly PRs remaining
DEBUG: getPrList success
{
  "pullsTotal": 2,
  "requestsTotal": 1,
  "apiQuotaAffected": true
}
DEBUG: currentHourStart=2023-01-04T19:00:00.000+00:00
DEBUG: PR hourly limit remaining: 2
DEBUG: Calculating prConcurrentLimit (10)
DEBUG: getBranchPr(renovate-gopkg.in-yaml.v2-3.x)
DEBUG: findPr(renovate-gopkg.in-yaml.v2-3.x, undefined, open)
DEBUG: Found PR #3
DEBUG: 1 PRs are currently open
DEBUG: PR concurrent limit remaining: 9
DEBUG: Calculated maximum PRs remaining this run: 2
DEBUG: PullRequests limit = 2
DEBUG: Calculating hourly PRs remaining
DEBUG: currentHourStart=2023-01-04T19:00:00.000+00:00
DEBUG: PR hourly limit remaining: 2
DEBUG: Calculating branchConcurrentLimit (10)
DEBUG: 1 already existing branches found: renovate-gopkg.in-yaml.v2-3.x
DEBUG: Branch concurrent limit remaining: 9
DEBUG: Calculated maximum branches remaining this run: 2
DEBUG: Branches limit = 2
DEBUG: syncBranchState()(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: branch.isUpToDate(): using cached result "true"(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: getBranchPr(renovate-gopkg.in-yaml.v2-3.x)(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: findPr(renovate-gopkg.in-yaml.v2-3.x, undefined, open)(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Found PR #3(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: branchExists=true(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: dependencyDashboardCheck=undefined(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: PR rebase requested=true(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Checking if PR has been edited(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: branch.isModified(): using cached result "false"(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Found existing branch PR(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Checking schedule(at any time, America/Los_Angeles)(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: No schedule defined(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Manual rebase requested via Dependency Dashboard(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Using reuseExistingBranch: false(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Setting current branch to main(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Initializing git repository into /mnt/renovate/gh/nsheaps/golang-renovate-example(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Performing blobless clone(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: git clone completed(branch="renovate-gopkg.in-yaml.v2-3.x")
{
  "durationMs": 1825
}
DEBUG: latest repository commit(branch="renovate-gopkg.in-yaml.v2-3.x")
{
  "latestCommit": {
    "hash": "a3d6df48edacbd8e4b21a0d254110132d0eea1e4",
    "date": "2022-12-28T13:28:28-05:00",
    "message": "Update renovate.json",
    "refs": "HEAD -> main, origin/main, origin/HEAD",
    "body": "",
    "author_name": "Nathan Heaps",
    "author_email": "[email protected]"
  }
}
DEBUG: latest commit(branch="renovate-gopkg.in-yaml.v2-3.x")
{
  "branchName": "main",
  "latestCommitDate": "2022-12-28T13:28:28-05:00"
}
DEBUG: manager.getUpdatedPackageFiles() reuseExistingBranch=false(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: gomod.updateDependency: v3.0.1(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: gomod: major update for gopkg.in/yaml.v2(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Updating gopkg.in/yaml.v2 in go.mod(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: gomod.updateArtifacts(go.mod)(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: go mod tidy command included(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: go mod tidy command included(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Setting CONTAINERBASE_CACHE_DIR to /tmp/containerbase(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Using docker to execute(branch="renovate-gopkg.in-yaml.v2-3.x")
{
  "image": "sidecar"
}
DEBUG: Resolved stable matching version(branch="renovate-gopkg.in-yaml.v2-3.x")
{
  "toolName": "golang",
  "constraint": "^1.19",
  "resolvedVersion": "1.19.4"
}
DEBUG: containerbaseDir is separate from cacheDir(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Resolved tag constraint(branch="renovate-gopkg.in-yaml.v2-3.x")
{
  "image": "docker.io/renovate/sidecar"
}
DEBUG: Docker image is already prefetched: docker.io/renovate/sidecar@sha256:64c0ad325174f334b8b76ae074fc15d538ea7637ab4c228ff11d2b254d106a46(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Executing command(branch="renovate-gopkg.in-yaml.v2-3.x")
{
  "command": "docker run --rm --name=renovate_sidecar --label=renovate_child -v \"/mnt/renovate/gh/nsheaps/golang-renovate-example\":\"/mnt/renovate/gh/nsheaps/golang-renovate-example\" -v \"/tmp/renovate-cache\":\"/tmp/renovate-cache\" -v \"/tmp/containerbase\":\"/tmp/containerbase\" -e GOPATH -e GOPROXY -e GOFLAGS -e CGO_ENABLED -e GIT_CONFIG_KEY_0 -e GIT_CONFIG_VALUE_0 -e GIT_CONFIG_KEY_1 -e GIT_CONFIG_VALUE_1 -e GIT_CONFIG_KEY_2 -e GIT_CONFIG_VALUE_2 -e GIT_CONFIG_COUNT -e BUILDPACK_CACHE_DIR -e CONTAINERBASE_CACHE_DIR -w \"/mnt/renovate/gh/nsheaps/golang-renovate-example\" docker.io/renovate/sidecar bash -l -c \"install-tool golang 1.19.4 && go get -d -t ./... && go mod tidy && go mod tidy\""
}
DEBUG: exec completed(branch="renovate-gopkg.in-yaml.v2-3.x")
{
  "durationMs": 18085,
  "stdout": "installing v2 tool golang v1.19.4\nlinking tool golang v1.19.4\ngo version go1.19.4 linux/amd64\nGO111MODULE=\"\"\nGOARCH=\"amd64\"\nGOBIN=\"\"\nGOCACHE=\"/home/ubuntu/.cache/go-build\"\nGOENV=\"/home/ubuntu/.config/go/env\"\nGOEXE=\"\"\nGOEXPERIMENT=\"\"\nGOFLAGS=\"-modcacherw\"\nGOHOSTARCH=\"amd64\"\nGOHOSTOS=\"linux\"\nGOINSECURE=\"\"\nGOMODCACHE=\"/tmp/renovate-cache/others/go/pkg/mod\"\nGONOPROXY=\"\"\nGONOSUMDB=\"\"\nGOOS=\"linux\"\nGOPATH=\"/tmp/renovate-cache/others/go\"\nGOPRIVATE=\"\"\nGOPROXY=\"https://proxy.golang.org,direct\"\nGOROOT=\"/opt/buildpack/tools/golang/1.19.4\"\nGOSUMDB=\"off\"\nGOTMPDIR=\"\"\nGOTOOLDIR=\"/opt/buildpack/tools/golang/1.19.4/pkg/tool/linux_amd64\"\nGOVCS=\"\"\nGOVERSION=\"go1.19.4\"\nGCCGO=\"gccgo\"\nGOAMD64=\"v1\"\nAR=\"ar\"\nCC=\"gcc\"\nCXX=\"g++\"\nCGO_ENABLED=\"0\"\nGOMOD=\"/mnt/renovate/gh/nsheaps/golang-renovate-example/go.mod\"\nGOWORK=\"\"\nCGO_CFLAGS=\"-g -O2\"\nCGO_CPPFLAGS=\"\"\nCGO_CXXFLAGS=\"-g -O2\"\nCGO_FFLAGS=\"-g -O2\"\nCGO_LDFLAGS=\"-g -O2\"\nPKG_CONFIG=\"pkg-config\"\nGOGCCFLAGS=\"-fPIC -m64 -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1343482320=/tmp/go-build -gno-record-gcc-switches\"\nInstalled v2 /usr/local/buildpack/tools/v2/golang.sh in 10 seconds\nskip cleanup, not a docker build: 0e1690030b5e\n",
  "stderr": "go: downloading gopkg.in/yaml.v2 v2.4.0\ngo: added gopkg.in/yaml.v2 v2.4.0\ngo: downloading gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405\n"
}
DEBUG: Returning updated go.sum(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Returning updated go source files for import path changes(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Found updated go.mod after go.sum update(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Updated 1 package files(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Updated 2 lock files(branch="renovate-gopkg.in-yaml.v2-3.x")
{
  "updatedArtifacts": [
    "go.sum",
    "go.mod"
  ]
}
DEBUG: Getting comments for #3(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Found 0 comments(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: isBranchConflicted(main, renovate-gopkg.in-yaml.v2-3.x)(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: branch.isConflicted(): using cached result "false"(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: 2 file(s) to commit(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Preparing files for committing to branch renovate-gopkg.in-yaml.v2-3.x(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Setting git author name: Renovate Bot(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Setting git author email: [email protected](branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: git commit(branch="renovate-gopkg.in-yaml.v2-3.x")
{
  "deletedFiles": [],
  "ignoredFiles": [],
  "result": {
    "author": null,
    "branch": "renovate-gopkg.in-yaml.v2-3.x",
    "commit": "9b2220a241b1559306380620050d4da5b0800594",
    "root": false,
    "summary": {
      "changes": 2,
      "insertions": 2,
      "deletions": 3
    }
  }
}
DEBUG: resetToCommit(a3d6df48edacbd8e4b21a0d254110132d0eea1e4)(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Fetching branch renovate-gopkg.in-yaml.v2-3.x(branch="renovate-gopkg.in-yaml.v2-3.x")
INFO: Branch updated(branch="renovate-gopkg.in-yaml.v2-3.x")
{
  "commitSha": "77ceabb5d59057ee92270424a40d9d754897fddd"
}
DEBUG: Ensuring PR(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: There are 0 errors and 0 warnings(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: getBranchPr(renovate-gopkg.in-yaml.v2-3.x)(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: findPr(renovate-gopkg.in-yaml.v2-3.x, undefined, open)(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Found PR #3(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Found existing PR(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Fetching changelog: https://github.com/go-yaml/yaml (v2.4.0 -> v3.0.1)(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: Processing existing PR(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: updatePr(3, fix(deps): update module gopkg.in/yaml.v2 to v3.0.1, body)(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: PR updated...prNo: 3(branch="renovate-gopkg.in-yaml.v2-3.x")
INFO: PR updated(branch="renovate-gopkg.in-yaml.v2-3.x")
{
  "pr": 3,
  "prTitle": "fix(deps): update module gopkg.in/yaml.v2 to v3.0.1"
}
DEBUG: PR is not configured for automerge(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: setBranchCommit()(branch="renovate-gopkg.in-yaml.v2-3.x")
DEBUG: getBranchPr(renovate-gopkg.in-yaml.v2-3.x)
DEBUG: findPr(renovate-gopkg.in-yaml.v2-3.x, undefined, open)
DEBUG: Found PR #3
DEBUG: branch.isBehindBase(): using cached result "false"
DEBUG: isBranchConflicted(main, renovate-gopkg.in-yaml.v2-3.x)
DEBUG: branch.isConflicted(): using cached result "false"
DEBUG: Ensuring Dependency Dashboard
DEBUG: ensureIssue(Renovate Dashboard 🤖)
DEBUG: Issue is open and up to date - nothing to do
DEBUG: Removing any stale branches
DEBUG: config.repoIsOnboarded=true
DEBUG: Branch lists
{
  "branchList": [
    "renovate-gopkg.in-yaml.v2-3.x"
  ],
  "renovateBranches": [
    "renovate-gopkg.in-yaml.v2-3.x"
  ]
}
DEBUG: remainingBranches=
DEBUG: No branches to clean up
DEBUG: Cleaning up Renovate refs: refs/renovate/*
DEBUG: PackageFiles.clear() - Package files deleted
DEBUG: Branch summary
{
  "cacheModified": true,
  "baseBranches": [
    {
      "branchName": "main",
      "sha": "a3d6df48edacbd8e4b21a0d254110132d0eea1e4"
    }
  ],
  "branches": [
    {
      "automerge": false,
      "baseBranch": "main",
      "baseBranchSha": "a3d6df48edacbd8e4b21a0d254110132d0eea1e4",
      "branchName": "renovate-gopkg.in-yaml.v2-3.x",
      "branchSha": "77ceabb5d59057ee92270424a40d9d754897fddd",
      "isModified": false,
      "isPristine": true
    }
  ],
  "inactiveBranches": []
}
DEBUG: Renovate repository PR statistics
{
  "stats": {
    "total": 1,
    "open": 1,
    "closed": 0,
    "merged": 0
  }
}
DEBUG: Repository result: done, status: onboarded, enabled: true, onboarded: true
DEBUG: Repository timing splits (milliseconds)
{
  "splits": {
    "init": 3107,
    "extract": 1280,
    "lookup": 230,
    "onboarding": 0,
    "update": 25877
  },
  "total": 32364
}
DEBUG: Package cache statistics
{
  "get": {
    "count": 6,
    "avgMs": 19,
    "medianMs": 1,
    "maxMs": 48
  },
  "set": {
    "count": 0
  }
}
DEBUG: http statistics
{
  "urls": {
    "https://api.github.com/graphql (POST,200)": 2,
    "https://api.github.com/repos/nsheaps/golang-renovate-example/contents/renovate.json (GET,200)": 1,
    "https://api.github.com/repos/nsheaps/golang-renovate-example/git/commits (POST,201)": 1,
    "https://api.github.com/repos/nsheaps/golang-renovate-example/git/refs/heads/renovate-gopkg.in-yaml.v2-3.x (PATCH,200)": 1,
    "https://api.github.com/repos/nsheaps/golang-renovate-example/git/trees (POST,201)": 1,
    "https://api.github.com/repos/nsheaps/golang-renovate-example/issues/2 (GET,200)": 2,
    "https://api.github.com/repos/nsheaps/golang-renovate-example/issues/3/comments (GET,200)": 1,
    "https://api.github.com/repos/nsheaps/golang-renovate-example/pulls (GET,200)": 1,
    "https://api.github.com/repos/nsheaps/golang-renovate-example/pulls/3 (PATCH,200)": 1,
    "https://api.github.com/repos/whitesource/merge-confidence/contents/beta.json (GET,200)": 1
  },
  "hostStats": {
    "api.github.com": {
      "requestCount": 12,
      "requestAvgMs": 301,
      "queueAvgMs": 0
    }
  },
  "totalRequests": 12
}
DEBUG: dns cache
{
  "hosts": [
    "api.github.com"
  ]
}
INFO: Repository finished
{
  "cloned": true,
  "durationMs": 32364
}

nsheaps avatar Jan 04 '23 19:01 nsheaps

Yes, gopkg.in is not supported by gomodUpdateImportPaths (and thus, goModTidy does not run on major updates either):

https://github.com/renovatebot/renovate/blob/91f3fe2d6ae74d1a6318996040a5ae9c7c951ed1/lib/modules/manager/gomod/artifacts.ts#L119

I mentioned it here: https://github.com/renovatebot/renovate/pull/19112#issuecomment-1335676366. We need support in mod first, the tool used to update the imports: marwan-at-work/mod#18

maxbrunet avatar Jan 04 '23 23:01 maxbrunet

Bug title and description needs updating now that we know the specific problem.

rarkins avatar Jan 05 '23 08:01 rarkins

:tada: This issue has been resolved in version 34.155.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

renovate-release avatar Mar 04 '23 09:03 renovate-release