-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building drivers crashes on missing translations #4909
Comments
@medyagh @sharifelgamal anyone knows what is going here ? $ go build -v k8s.io/minikube/cmd/drivers/kvm
k8s.io/minikube/pkg/minikube/translate
# k8s.io/minikube/pkg/minikube/translate
pkg/minikube/translate/translate.go:77:12: undefined: Asset is there a good tool to show dependencies ? |
Using
It is the usage of either of these two imports:
|
@afbjorklund I've just tried to build the kvm driver on master and it worked without problem with both |
It is related so far as I started building the drivers clean, and noticed the issue when the files are gone. Try removing the generated |
Yeah, it fails. Probably related to https://github.com/kubernetes/minikube/blob/master/pkg/drivers/kvm/kvm.go#L28-L30 |
The "constants" are OK, they're just hiding some strings. Will be a problem when upstreaming, though. constants.DriverHyperkit ( And some extra defaults: The problem here is using minikube constants, in what is supposed to be a stand-alone machine driver. |
@afbjorklund Agree. But constants are really simple to extract. Currently, the driver is using a function that depends on the translations directly |
Yeah, someone desperately wanted to tag a "mb" onto the default value... The original driver only had these default as CLI flags, not in the driver code itself. I can't really see why parsing the "millibytes" should be locale-specific, though. But I think I will just leave it (for now), otherwise someone will want "mebibytes". |
Fixed in ea4aeaf |
When trying to build either of the machine drivers, the build fails due to missing translations:
It requires this file to be generated (from JSON):
pkg/minikube/translate/translations.go
These files should not be needed nor used in the drivers, that are supposed to be lowlevel...
i.e. I don't think that we should have translation support, in the docker machine drivers code
The text was updated successfully, but these errors were encountered: