Skip to content
This repository was archived by the owner on Aug 24, 2024. It is now read-only.
This repository was archived by the owner on Aug 24, 2024. It is now read-only.

panic: runtime error: invalid memory address or nil pointer dereference #12

@jarbus

Description

@jarbus

Running with development version of git-bug and go-git

$ ./migrate --for-real
Migration #1
Purpose: Convert legacy identities into a complete data structure in git

skipping identity, already updated


Migration #2
Purpose: Migrate bridge credentials from the global git config to a keyring



Migration #3
Purpose: Make bug and identities independent from the storage by making the ID generation self-contained. Also, migrate to the new full DAG entity data model.

skipping bug, already updated
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xaf2dd5]

goroutine 1 [running]:
github.com/MichaelMure/git-bug-migration/migration3/after/identity.(*Identity).Id(...)
	/home/runner/work/git-bug-migration/git-bug-migration/migration3/after/identity/identity.go:478
github.com/MichaelMure/git-bug-migration/migration3/after/identity.SetUserIdentity({0x7f96fd1244d8?, 0xc0001aa7e0?}, 0x0)
	/home/runner/work/git-bug-migration/git-bug-migration/migration3/after/identity/identity_user.go:15 +0x35
github.com/MichaelMure/git-bug-migration/migration3.(*Migration3).migrate(0xc00042a5c0?, {0xdc6210?, 0xc0001e0580}, {0xdc78f8?, 0xc0001aa7e0})
	/home/runner/work/git-bug-migration/git-bug-migration/migration3/migration3.go:110 +0x9f2
github.com/MichaelMure/git-bug-migration/migration3.(*Migration3).Run(0xdbb520?, {0xc00042a5c0, 0x1b})
	/home/runner/work/git-bug-migration/git-bug-migration/migration3/migration3.go:36 +0x8e
main.runRootCmd(0xc00043c570, {0xb0?}, {0xc00043c5a0?, 0x3, 0x0?})
	/home/runner/work/git-bug-migration/git-bug-migration/root.go:76 +0x3c3
main.NewRootCommand.func1(0xc0000f0580?, {0xca8420?, 0x1?, 0x1?})
	/home/runner/work/git-bug-migration/git-bug-migration/root.go:44 +0x31
github.com/spf13/cobra.(*Command).execute(0xc0000f0580, {0xc0001ac010, 0x1, 0x1})
	/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:842 +0x67c
github.com/spf13/cobra.(*Command).ExecuteC(0xc0000f0580)
	/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:950 +0x39c
github.com/spf13/cobra.(*Command).Execute(...)
	/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:887
main.main()
	/home/runner/work/git-bug-migration/git-bug-migration/main.go:6 +0x1e

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions