gh-gei icon indicating copy to clipboard operation
gh-gei copied to clipboard

Migration from GHES doesn't honor local archive or archive URL

Open tspascoal opened this issue 7 months ago • 6 comments

Description

When the source is GHES , the migrate-repo command doesn't honor the --git-archive-path' and --git-archive-url` parameters. Even if they are passed it always tries to export the archive from GHES

Reproduction Steps

Try to migrate with a local archive (eg: exported with ghe-migrator) and pass it to GEI using --git-archive-path or --metadata-archive-path an archived in storage and passed with --metadata-archive-url and --git-archive-url

tspascoal avatar May 15 '25 12:05 tspascoal

What’s the command you are running? Be sure you’re not passing ghes-api-url or it will always try to generate new archive.

dylan-smith avatar May 15 '25 13:05 dylan-smith

If the ghes-api-url is not passed then the "wrong" source is used and then migration will fail.

tspascoal avatar May 15 '25 13:05 tspascoal

can you share the exact combination of args you are using?

dylan-smith avatar May 15 '25 14:05 dylan-smith

something like

gh gei migrate-repo --github-source-org XXXX  --source-repo XXXX --github-target-org XXXX --target-repo XXXXX --ghes-api-url https://github-blah.com/api/v3

tspascoal avatar May 15 '25 15:05 tspascoal

something like

gh gei migrate-repo --github-source-org XXXX  --source-repo XXXX --github-target-org XXXX --target-repo XXXXX --ghes-api-url https://github-blah.com/api/v3

I thought you were using the archive-path args??

dylan-smith avatar May 15 '25 16:05 dylan-smith

I thought you were using the archive-path args??

We tried both archive-path and archive-url (first URL and then path). The results are the same

tspascoal avatar May 15 '25 17:05 tspascoal