-
Notifications
You must be signed in to change notification settings - Fork 12
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
feat: support arm64 #35
Conversation
vangie
commented
Mar 8, 2023
- Compile arm64 binaries
- Migrating from dep to go module
- upgrade golang.org/x/crypto to v0.7.0 for go1.20.2
3737830
to
014cc1c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks good. For all the other tools on the Carvel suite we are trying to keep the vendor folder present so that when you download the git repo you will get all the needed dependencies.
Another thing that I noticed was that when I run build locally using go 1.20 I got a diff on
diff --git a/pkg/kwt/cmd/core/strings_single_line_value.go b/pkg/kwt/cmd/core/strings_single_line_value.go
index c3af264..ca6ee35 100644
--- a/pkg/kwt/cmd/core/strings_single_line_value.go
+++ b/pkg/kwt/cmd/core/strings_single_line_value.go
@@ -10,7 +10,9 @@ type ValueStringsSingleLine struct {
S []string
}
-func NewValueStringsSingleLine(s []string) ValueStringsSingleLine { return ValueStringsSingleLine{S: s} }
+func NewValueStringsSingleLine(s []string) ValueStringsSingleLine {
+ return ValueStringsSingleLine{S: s}
+}
func (t ValueStringsSingleLine) String() string { return strings.Join(t.S, ", ") }
func (t ValueStringsSingleLine) Value() uitable.Value { return t }
diff --git a/pkg/kwt/net/forwarder/linux_orig_dst_resolver_linux.go b/pkg/kwt/net/forwarder/linux_orig_dst_resolver_linux.go
index ac5109d..d695be8 100644
--- a/pkg/kwt/net/forwarder/linux_orig_dst_resolver_linux.go
+++ b/pkg/kwt/net/forwarder/linux_orig_dst_resolver_linux.go
@@ -1,3 +1,4 @@
+//go:build linux
// +build linux
package forwarder
diff --git a/pkg/kwt/net/forwarder/linux_orig_dst_resolver_other.go b/pkg/kwt/net/forwarder/linux_orig_dst_resolver_other.go
index d41a49a..bd1e3c0 100644
--- a/pkg/kwt/net/forwarder/linux_orig_dst_resolver_other.go
+++ b/pkg/kwt/net/forwarder/linux_orig_dst_resolver_other.go
@@ -1,3 +1,4 @@
+//go:build !linux
// +build !linux
package forwarder
Do you mind doing that change?
@joaopapereira What command can I run to reproduce this diff problem?I understand that I have not changed these files, your local prettifer or lint plugin caused? |
014cc1c
to
9dcbeb5
Compare
1. Compile arm64 binaries 2. Migrating from dep to go module 3. Upgrade golang.org/x/crypto to v0.7.0 for go1.20.2 Signed-off-by: Vangie Du <duwan@live.com>
9dcbeb5
to
af3cb7c
Compare
@vangie sorry for the late reply but I was out. git fetch origin pull/35/head:arm-pr
git checkout arm-pr
./hack/build.sh and this is the output I get:
|