EEbus: simplify build

This commit is contained in:
andig 2022-10-20 20:13:25 +02:00
parent d0b245dc17
commit 8060096bef
4 changed files with 4 additions and 10 deletions

View file

@ -44,7 +44,7 @@ jobs:
id: go
- name: Patch ASN1
run: make patch-asn1-sudo
run: sudo make patch-asn1
- name: Build
run: make build
@ -63,7 +63,7 @@ jobs:
id: go
- name: Patch ASN1
run: make patch-asn1-sudo
run: sudo make patch-asn1
- name: Test
run: make test

View file

@ -82,7 +82,7 @@ jobs:
run: pip install --upgrade cloudsmith-cli
- name: Patch ASN1
run: make patch-asn1-sudo
run: sudo make patch-asn1
- name: Create nightly build
uses: goreleaser/goreleaser-action@v3

View file

@ -68,7 +68,7 @@ jobs:
run: pip install --upgrade cloudsmith-cli
- name: Patch ASN1
run: make patch-asn1-sudo
run: sudo make patch-asn1
# gokrazy image
# - name: Prepare Image

View file

@ -127,12 +127,6 @@ soc::
go build $(BUILD_TAGS) $(BUILD_ARGS) github.com/evcc-io/evcc/cmd/soc
# patch asn1.go to allow Elli buggy certificates to be accepted with EEBUS
patch-asn1-sudo::
# echo $(GOROOT)
cat $(GOROOT)/src/vendor/golang.org/x/crypto/cryptobyte/asn1.go | grep -C 1 "out = true"
sudo patch -N -t -d $(GOROOT)/src/vendor/golang.org/x/crypto/cryptobyte -i $(CURRDIR)/patch/asn1.diff
cat $(GOROOT)/src/vendor/golang.org/x/crypto/cryptobyte/asn1.go | grep -C 1 "out = true"
patch-asn1::
# echo $(GOROOT)
cat $(GOROOT)/src/vendor/golang.org/x/crypto/cryptobyte/asn1.go | grep -C 1 "out = true"