use locally checked out lib in the docker job

see https://github.com/mattn/go-sqlite3/pull/1177
This commit is contained in:
Diego Becciolini
2023-12-13 20:40:44 +00:00
committed by mattn
parent 9fd6f4ffd3
commit c260ecf7e4
2 changed files with 3 additions and 2 deletions

View File

@@ -26,7 +26,9 @@ WORKDIR /workspace
COPY . /workspace/
RUN \
cd _example/simple && \
go mod init github.com/mattn/sample && \
go mod edit -replace=github.com/mattn/go-sqlite3=../.. && \
go mod tidy && \
go install -ldflags='-s -w -extldflags "-static"' ./simple.go