Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22.2'
go-version: '1.25'

- name: Install Linux dependencies
if: runner.os == 'Linux'
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:3.20 AS build
FROM alpine:3.23 AS build

RUN apk -U --no-cache add go alsa-lib-dev libogg-dev libvorbis-dev flac-dev gcc musl-dev
RUN apk update && apk -U --no-cache add go alsa-lib-dev libogg-dev libvorbis-dev flac-dev gcc musl-dev

WORKDIR /src

Expand All @@ -10,9 +10,9 @@ RUN go mod download
COPY . .
RUN CGO_ENABLED=1 go build -v ./cmd/daemon

FROM alpine:3.20
FROM alpine:3.23

RUN apk -U --no-cache add libpulse avahi libgcc gcompat alsa-lib
RUN apk update && apk -U --no-cache add libpulse avahi libgcc gcompat alsa-lib

COPY --from=build /src/daemon /usr/bin/go-librespot

Expand Down
11 changes: 9 additions & 2 deletions Dockerfile.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
FROM --platform=linux/amd64 docker.io/golang:1.22.2
FROM --platform=linux/amd64 debian:buster-slim

# Build tools
RUN apt-get update && apt-get install -y zip autoconf autopoint libtool
RUN sed -i 's/deb.debian.org/archive.debian.org/' /etc/apt/sources.list && \
apt-get update && apt-get install -y wget curl git zip gcc g++ make autoconf autopoint pkg-config libtool

# Install golang
RUN wget https://go.dev/dl/go1.25.5.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go1.25.5.linux-amd64.tar.gz && \
rm go1.25.5.linux-amd64.tar.gz
ENV PATH="/usr/local/go/bin:$PATH"

# Install toolchain
ARG TARGET
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ brew install go-librespot

To build from source the following prerequisites are necessary:

- Go 1.22 or higher
- Go 1.25 or higher
- Libraries: `libogg`, `libvorbis`, `flac`, `libasound2`

To install Go, download it from the [Go website](https://go.dev/dl/).
Expand Down
59 changes: 30 additions & 29 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,50 +1,51 @@
module github.com/devgianlu/go-librespot

go 1.22.2
go 1.25

toolchain go1.25.5

require (
github.com/cenkalti/backoff/v4 v4.2.1
github.com/cenkalti/backoff/v4 v4.3.0
github.com/devgianlu/shannon v0.0.0-20230613115856-82ec90b7fa7e
github.com/godbus/dbus/v5 v5.1.0
github.com/gofrs/flock v0.12.1
github.com/godbus/dbus/v5 v5.2.0
github.com/gofrs/flock v0.13.0
github.com/grandcat/zeroconf v1.0.0
github.com/jfreymuth/pulse v0.1.2-0.20241102120944-4ffb35054b53
github.com/knadh/koanf/parsers/yaml v0.1.0
github.com/knadh/koanf/providers/confmap v0.1.0
github.com/knadh/koanf/providers/file v1.1.0
github.com/knadh/koanf/providers/posflag v0.1.0
github.com/knadh/koanf/v2 v2.1.1
github.com/knadh/koanf/parsers/yaml v1.1.0
github.com/knadh/koanf/providers/confmap v1.0.0
github.com/knadh/koanf/providers/file v1.2.0
github.com/knadh/koanf/providers/posflag v1.0.1
github.com/knadh/koanf/v2 v2.3.0
github.com/rs/cors v1.11.1
github.com/sirupsen/logrus v1.9.3
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.9.0
github.com/spf13/pflag v1.0.10
github.com/stretchr/testify v1.11.1
github.com/xlab/vorbis-go v0.0.0-20210911202351-b5b85f1ec645
go.uber.org/goleak v1.3.0
golang.org/x/crypto v0.24.0
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1
golang.org/x/net v0.26.0
golang.org/x/oauth2 v0.21.0
golang.org/x/sys v0.22.0
google.golang.org/protobuf v1.30.0
nhooyr.io/websocket v1.8.7
golang.org/x/crypto v0.46.0
golang.org/x/exp v0.0.0-20251209150349-8475f28825e9
golang.org/x/net v0.48.0
golang.org/x/oauth2 v0.34.0
golang.org/x/sys v0.39.0
google.golang.org/protobuf v1.36.11
nhooyr.io/websocket v1.8.17
)

require (
github.com/cenkalti/backoff v2.2.1+incompatible // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1 // indirect
github.com/klauspost/compress v1.10.3 // indirect
github.com/knadh/koanf/maps v0.1.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/miekg/dns v1.1.54 // indirect
github.com/fsnotify/fsnotify v1.9.0 // indirect
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
github.com/knadh/koanf/maps v0.1.2 // indirect
github.com/miekg/dns v1.1.69 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rogpeppe/go-internal v1.13.1 // indirect
github.com/stretchr/objx v0.5.2 // indirect
golang.org/x/mod v0.18.0 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/tools v0.22.0 // indirect
github.com/rogpeppe/go-internal v1.14.1 // indirect
github.com/stretchr/objx v0.5.3 // indirect
go.yaml.in/yaml/v3 v3.0.4 // indirect
golang.org/x/mod v0.31.0 // indirect
golang.org/x/sync v0.19.0 // indirect
golang.org/x/tools v0.40.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading