Multi architecture support #946
Labels
No Label
bug
duplicate
enhancement
invalid
question
up for grabs
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: jcarr/git2go#946
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I am building a go application that depends on
git2go
and needs to be packaged as a docker image and will need to supportlinux/amd64
andlinux/arm64
architectures.Dockerfile:
Build commands:
This setup works but building for the arch different from host machine's arch is extremely slow.
Examples:
linux/arm64
executable takes ~30s andlinux/amd64
takes ~300seconds.linux/arm64
executable takes 10x longer than buildinglinux/amd64
executable.Is there any way to speed up these build times? I suspect this slow times are because
docker
is usingqemu
to build for the different architecture and if I can somehow provide aC
compiler that's able to cross-compile for both the architectures using theCC
env variable then it would help bring down the build times.But I cant seem to find any such compiler toolchain.
Thanks in advance!