parent
8060096bef
commit
269e120cdc
4 changed files with 10 additions and 4 deletions
4
.github/workflows/default.yml
vendored
4
.github/workflows/default.yml
vendored
|
|
@ -44,7 +44,7 @@ jobs:
|
|||
id: go
|
||||
|
||||
- name: Patch ASN1
|
||||
run: sudo make patch-asn1
|
||||
run: make patch-asn1-sudo
|
||||
|
||||
- name: Build
|
||||
run: make build
|
||||
|
|
@ -63,7 +63,7 @@ jobs:
|
|||
id: go
|
||||
|
||||
- name: Patch ASN1
|
||||
run: sudo make patch-asn1
|
||||
run: make patch-asn1-sudo
|
||||
|
||||
- name: Test
|
||||
run: make test
|
||||
|
|
|
|||
2
.github/workflows/nightly.yml
vendored
2
.github/workflows/nightly.yml
vendored
|
|
@ -82,7 +82,7 @@ jobs:
|
|||
run: pip install --upgrade cloudsmith-cli
|
||||
|
||||
- name: Patch ASN1
|
||||
run: sudo make patch-asn1
|
||||
run: make patch-asn1-sudo
|
||||
|
||||
- name: Create nightly build
|
||||
uses: goreleaser/goreleaser-action@v3
|
||||
|
|
|
|||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
|
@ -68,7 +68,7 @@ jobs:
|
|||
run: pip install --upgrade cloudsmith-cli
|
||||
|
||||
- name: Patch ASN1
|
||||
run: sudo make patch-asn1
|
||||
run: make patch-asn1-sudo
|
||||
|
||||
# gokrazy image
|
||||
# - name: Prepare Image
|
||||
|
|
|
|||
6
Makefile
6
Makefile
|
|
@ -127,6 +127,12 @@ 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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue