FTBFS: *GitRepo does not implement ClockedRepo (missing method AllClocks)

Labels: lifecycle/stale

Timeline

Matěj Cepl (mcepl) opened

tumbleweed-pkg~/r/git-bug (master *)$ go clean -modcache
tumbleweed-pkg~/r/git-bug (master *)$ go mod tidy
tumbleweed-pkg~/r/git-bug (master *)$ git diff >/tmp/git-diff.patch
tumbleweed-pkg~/r/git-bug (master *)$ go install
# github.com/MichaelMure/git-bug/repository
repository/gogit.go:30:7: clockPath redeclared in this block
	repository/git.go:20:2: other declaration of clockPath
repository/keyring.go:53:6: replaceKeyring redeclared in this block
	repository/git_testing.go:65:6: other declaration of replaceKeyring
repository/keyring.go:58:26: method replaceKeyring.Keyring already declared at repository/git_testing.go:70:26
repository/git.go:23:21: cannot use &GitRepo{} (value of type *GitRepo) as ClockedRepo value in variable declaration: *GitRepo does not implement ClockedRepo (missing method AllClocks)
repository/git.go:24:20: cannot use &GitRepo{} (value of type *GitRepo) as TestedRepo value in variable declaration: *GitRepo does not implement TestedRepo (missing method AllClocks)
repository/git.go:79:27: cannot use repo (variable of type *GitRepo) as ClockedRepo value in argument to loader.Witnesser: *GitRepo does not implement ClockedRepo (missing method AllClocks)
repository/git_testing.go:41:15: cannot use repo (variable of type *GitRepo) as TestedRepo value in struct literal: *GitRepo does not implement TestedRepo (missing method AllClocks)
repository/git_testing.go:47:30: not enough arguments in call to CreateGoGitTestRepo
	have (bool)
	want (testing.TB, bool)
repository/git_testing.go:48:30: not enough arguments in call to CreateGoGitTestRepo
	have (bool)
	want (testing.TB, bool)
repository/git_testing.go:49:31: not enough arguments in call to CreateGoGitTestRepo
	have (bool)
	want (testing.TB, bool)
repository/git_testing.go:49:31: too many errors
tumbleweed-pkg~/r/git-bug (master *)$ 

git-diff.patch.txt

Matěj Cepl (mcepl) changed the title from FTBFS: *GitRepo does not implement ClockedRepo (missing method AllClocks) to FTBFS: *GitRepo does not implement ClockedRepo (missing method AllClocks)

Michael Muré (MichaelMure) commented

I suspect you have an outdated golang version, which one are you using?

Matěj Cepl (mcepl) commented

On Wed Apr 17, 2024 at 1:16 PM CEST, Michael Muré wrote:

I suspect you have an outdated golang version, which one are you using?

go version go1.21.9 linux/amd64

The standard go packaged on OpenSUSE/Tumblweed.

Best,

Matěj

github-actions (github-actions) commented

This bot triages untriaged issues and PRs according to the following rules:

  • After 90 days of inactivity, the lifecycle/stale label is applied
  • After 30 days of inactivity since lifecycle/stale was applied, the issue is closed

To remove the stale status, you can:

  • Remove the lifecycle/stale label
  • Comment on this issue

github-actions (github-actions) added label lifecycle/stale

Matěj Cepl (mcepl) commented

This seems gone.

Matěj Cepl (mcepl) closed the bug