Skip to content

Commit

Permalink
review suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: Spolti <[email protected]>
  • Loading branch information
spolti committed Nov 21, 2023
1 parent 7f47b12 commit 76475fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ RUN true \
COPY .pre-commit-config.yaml ./
RUN git init && \
pre-commit install-hooks && \
git config --global --add safe.directory "*" && \
rm -rf .git

# Download dependencies before copying the source so they will be cached
Expand Down Expand Up @@ -127,7 +128,7 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
GOARCH=${TARGETARCH:-amd64} \
CGO_ENABLED=0 \
GO111MODULE=on \
go mod tidy && go build -a -o /go/bin/server ./proxy/
go build -a -o /go/bin/server ./proxy/


###############################################################################
Expand Down
6 changes: 0 additions & 6 deletions scripts/fmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.#

# Fix: 'fatal: detected dubious ownership in repository',
# only do this if it is running into the develop image
if [ "${PWD}" == "/opt/app" ]; then
git config --global --add safe.directory "*"
fi

pre-commit run --all-files
RETURN_CODE=$?
## cat this file for helping on identifying the root cause when some issue happens
Expand Down

0 comments on commit 76475fc

Please sign in to comment.