Skip to content

Commit ef3cae0

Browse files
author
Marc-Antoine Ruel
committed
Update to go1.17
Update deprecated code. Update github actions. Update dependencies.
1 parent 8d2b28e commit ef3cae0

File tree

32 files changed

+98
-95
lines changed

32 files changed

+98
-95
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
matrix:
3131
os: [ubuntu-latest, macos-latest, windows-latest]
3232
# Do not forget to bump every 6 months!
33-
gover: ["1.18"]
33+
gover: ["1.19"]
3434
env:
3535
PYTHONDONTWRITEBYTECODE: x
3636
steps:
@@ -101,7 +101,7 @@ jobs:
101101
# Windows.
102102
os: [ubuntu-latest, macos-latest, windows-latest]
103103
# Do not forget to bump every 6 months!
104-
gover: ["1.18"]
104+
gover: ["1.19"]
105105
env:
106106
PYTHONDONTWRITEBYTECODE: x
107107
steps:
@@ -161,8 +161,8 @@ jobs:
161161
- name: 'Check: no executable was committed (ubuntu)'
162162
if: always() && matrix.os == 'ubuntu-latest'
163163
run: |
164-
if find . -path '*.sh' -prune -o -path ./.git -prune -o -type f -executable -print | grep -e . ; then
165-
echo 'Do not commit executables beside shell scripts'
164+
if find . -path ./.git -prune -o -type f -executable -print | grep -e . ; then
165+
echo 'Do not commit executables'
166166
false
167167
fi
168168
- name: 'Check: addlicense; all sources have a license header (ubuntu)'
@@ -179,10 +179,10 @@ jobs:
179179
echo "- ${FILE}" >> _gofmt.txt
180180
done
181181
cat _gofmt.txt
182-
echo "## ⚠ gofmt Failed" >> _comments.txt
183-
echo "" >> _comments.txt
184-
cat _gofmt.txt >> _comments.txt
185-
echo "" >> _comments.txt
182+
echo "## ⚠ gofmt Failed" >> ../_comments.txt
183+
echo "" >> ../_comments.txt
184+
cat _gofmt.txt >> ../_comments.txt
185+
echo "" >> ../_comments.txt
186186
false
187187
fi
188188
- name: "Check: misspelling; code doesn't contain misspelling (ubuntu)"
@@ -191,10 +191,10 @@ jobs:
191191
ERR=$(misspell .)
192192
if ! test -z "$ERR"; then
193193
echo "$ERR"
194-
echo "## ⚠ misspell Failed" >> _comments.txt
195-
echo "" >> _comments.txt
196-
echo "$ERR" >> _comments.txt
197-
echo "" >> _comments.txt
194+
echo "## ⚠ misspell Failed" >> ../_comments.txt
195+
echo "" >> ../_comments.txt
196+
echo "$ERR" >> ../_comments.txt
197+
echo "" >> ../_comments.txt
198198
false
199199
fi
200200
- name: 'Send comments'
@@ -269,7 +269,10 @@ jobs:
269269
fail-fast: false
270270
matrix:
271271
os: [ubuntu-latest]
272-
gover: ['1.13.15']
272+
# https://github.com/golang/go/issues/55078
273+
# golang.org/x/sys/unix broke on Go versions before 1.17. Not worth
274+
# fixing.
275+
gover: ['1.17.13']
273276
env:
274277
PYTHONDONTWRITEBYTECODE: x
275278
steps:
@@ -293,7 +296,7 @@ jobs:
293296
matrix:
294297
os: [ubuntu-latest]
295298
# Do not forget to bump every 6 months!
296-
gover: ["1.18"]
299+
gover: ["1.19"]
297300
permissions:
298301
security-events: write
299302
steps:

allwinner/a64.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ func init() {
4141
// The mapping comes from the datasheet page 23:
4242
// http://files.pine64.org/doc/datasheet/pine64/A64_Datasheet_V1.1.pdf
4343
//
44-
// - The datasheet uses TWI instead of I2C but it is renamed here for
45-
// consistency.
46-
// - AIF is an audio interface, i.e. to connect to S/PDIF.
47-
// - RGMII means Reduced gigabit media-independent interface.
48-
// - SDC means SDCard?
49-
// - NAND connects to a NAND flash controller.
50-
// - CSI and CCI are for video capture.
44+
// - The datasheet uses TWI instead of I2C but it is renamed here for
45+
// consistency.
46+
// - AIF is an audio interface, i.e. to connect to S/PDIF.
47+
// - RGMII means Reduced gigabit media-independent interface.
48+
// - SDC means SDCard?
49+
// - NAND connects to a NAND flash controller.
50+
// - CSI and CCI are for video capture.
5151
var mappingA64 = map[string][5]pin.Func{
5252
"PB0": {"UART2_TX", "", "JTAG0_TMS", "", "PB_EINT0"},
5353
"PB1": {"UART2_RX", "", "JTAG0_TCK", "SIM_PWREN", "PB_EINT1"},

allwinner/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// If you are looking at the actual implementation, open doc.go for further
1212
// implementation details.
1313
//
14-
// Datasheets
14+
// # Datasheets
1515
//
1616
// A64: http://files.pine64.org/doc/datasheet/pine64/Allwinner_A64_User_Manual_V1.0.pdf
1717
//

allwinner/h5.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ import (
2222
// The mapping comes from the datasheet page 55:
2323
// https://linux-sunxi.org/images/a/a3/Allwinner_H5_Manual_v1.0.pdf
2424
//
25-
// - The datasheet uses TWI instead of I2C but it is renamed here for
26-
// consistency.
27-
// - RGMII means Reduced gigabit media-independent interface.
28-
// - SDC means SDCard?
29-
// - NAND connects to a NAND flash controller.
30-
// - CSI and CCI are for video capture.
25+
// - The datasheet uses TWI instead of I2C but it is renamed here for
26+
// consistency.
27+
// - RGMII means Reduced gigabit media-independent interface.
28+
// - SDC means SDCard?
29+
// - NAND connects to a NAND flash controller.
30+
// - CSI and CCI are for video capture.
3131
var mappingH5 = map[string][5]pin.Func{
3232
"PA0": {"UART2_TX", "JTAG_MS", "", "", "PA_EINT0"},
3333
"PA1": {"UART2_RX", "JTAG_CK", "", "", "PA_EINT1"},

am335x/doc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
// GPIOx_y. To get the absolute number, as exposed by sysfs, use 32*x+y to get
1414
// the absolute number.
1515
//
16-
// Datasheet
16+
// # Datasheet
1717
//
1818
// Technical Reference Manual
1919
// https://www.ti.com/lit/ug/spruh73p/spruh73p.pdf
2020
//
21-
// Other
21+
// # Other
2222
//
2323
// Marketing page
2424
// https://www.ti.com/processors/sitara/arm-cortex-a8/am335x/overview.html

bcm283x/doc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
// If you are looking for the actual implementation, open doc.go for further
1111
// implementation details.
1212
//
13-
// GPIOs
13+
// # GPIOs
1414
//
1515
// Aliases for GPCLK0, GPCLK1, GPCLK2 are created for corresponding CLKn pins.
1616
// Same for PWM0_OUT and PWM1_OUT, which point respectively to PWM0 and PWM1.
1717
//
18-
// Datasheet
18+
// # Datasheet
1919
//
2020
// https://www.raspberrypi.org/wp-content/uploads/2012/02/BCM2835-ARM-Peripherals.pdf
2121
//

bcm283x/gpio.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ func (p *Pin) FastOut(l gpio.Level) {
590590
//
591591
// It outputs a periodic signal on supported pins without CPU usage.
592592
//
593-
// PWM pins
593+
// # PWM pins
594594
//
595595
// PWM0 is exposed on pins 12, 18 and 40. However, PWM0 is used for generating
596596
// clock for DMA and unavailable for PWM.

beagle/black/black.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
// Package black implements headers for the BeagleBone Black and BeagleBone
66
// Black Wireless micro-computers.
77
//
8-
// Reference
8+
// # Reference
99
//
1010
// https://beagleboard.org/black
1111
//
12-
// Datasheet
12+
// # Datasheet
1313
//
1414
// https://elinux.org/Beagleboard:BeagleBoneBlack
1515
//

beagle/bone/bone.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// In particular, the headers are found on the models using a TI AM335x
99
// processor: BeagleBone Black, Black Wireless, Green and Green Wireless.
1010
//
11-
// Reference
11+
// # Reference
1212
//
1313
// http://beagleboard.org/Support/bone101/#hardware
1414
package bone

beagle/green/green.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
// Package green implements headers for the BeagleBone Green and BeagleBone
66
// Green Wireless micro-computers.
77
//
8-
// Reference
8+
// # Reference
99
//
1010
// https://beagleboard.org/green
1111
//
1212
// https://beagleboard.org/green-wireless
1313
//
14-
// Datasheet
14+
// # Datasheet
1515
//
1616
// http://wiki.seeedstudio.com/BeagleBone_Green/
1717
package green

0 commit comments

Comments
 (0)