error obtaining VCS status: exit status 128
Use -buildvcs=false to disable VCS stamping.
failed to build, error: exit status 1
running...
/bin/sh: /src/tmp/main: not found
error obtaining VCS status: exit status 128
Use -buildvcs=false to disable VCS stamping.
My docker configurations
FROM golang:1.19.2-alpine
RUN apk update && apk upgrade && \
apk add git make curl openssh-client
# Add a work directory
WORKDIR /src
# Install air for development
RUN curl -fLo install.sh https://raw.githubusercontent.com/cosmtrek/air/master/install.sh \
&& chmod +x install.sh && sh install.sh && cp ./bin/air /bin/air
# Start app
CMD air start
use air to reload in my code
Make sure that the necessary dependencies are properly installed by running go mod vendor and you are using stable versions of go (1.17) and alpine (3.16).