Skip to content

Commit

Permalink
Go 1.22.5 (#1089)
Browse files Browse the repository at this point in the history
* Go 1.22.5

* Lint
  • Loading branch information
robbydyer committed Aug 7, 2024
1 parent 997007a commit 6282b85
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.lint
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ COPY ./internal/rgbmatrix-rpi/lib/rpi-rgb-led-matrix.BASE /tmp/rpi-rgb-led-matri
RUN cd /tmp/rpi-rgb-led-matrix && \
make

FROM golangci/golangci-lint:v1.59.0
FROM golangci/golangci-lint:v1.59.1

COPY --from=builder /tmp/rpi-rgb-led-matrix /sportslibs/rpi-rgb-led-matrix
2 changes: 1 addition & 1 deletion Dockerfile.pibuilder
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM $BASE
# Replace shell with bash so we can source files
SHELL ["/bin/bash", "--login", "-ce"]

ARG GOVERSION=1.22.3
ARG GOVERSION=1.22.5

RUN apt-get update --allow-unauthenticated --allow-insecure-repositories && \
apt-get install --allow-unauthenticated -y debian-archive-keyring && \
Expand Down
7 changes: 4 additions & 3 deletions internal/pga/pga.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,14 @@ func (p *PGA) updatePlayers(ctx context.Context) ([]*Player, error) {
}

if strings.Contains(comp.DataFormat, "RAW") && comp.RawData != "" {
return p.parseRaw(comp.RawData)
players := p.parseRaw(comp.RawData)
return players, nil
}

return nil, fmt.Errorf("could not find players")
}

func (p *PGA) parseRaw(data string) ([]*Player, error) {
func (p *PGA) parseRaw(data string) []*Player {
fields := strings.Split(data, "\n")

players := []*Player{}
Expand Down Expand Up @@ -216,5 +217,5 @@ func (p *PGA) parseRaw(data string) ([]*Player, error) {
players = append(players, newP)
}

return players, nil
return players
}
2 changes: 1 addition & 1 deletion script/common
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -euo pipefail

ROOT="$(dirname $( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd ))"
DOCKERCONF="${ROOT}/.dockerconfig"
GO_VERSION="1.22.3"
GO_VERSION="1.22.5"

getsha() {
if uname -s | grep -i darwin &> /dev/null; then
Expand Down

0 comments on commit 6282b85

Please sign in to comment.