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 15, 2023
1 parent e7c0be8 commit a2b7326
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ RUN true \
COPY .pre-commit-config.yaml ./
RUN git init && \
pre-commit install-hooks && \
# Fix: 'fatal: detected dubious ownership in repository'
RUN git config --global --add safe.directory "*" && \
rm -rf .git

# Download dependencies before copying the source so they will be cached
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ run: use.develop

.PHONY: test
## Run tests
test: fmt
test:
./scripts/run_tests.sh

.PHONY: fmt
Expand Down
5 changes: 2 additions & 3 deletions model-mesh-ovms-adapter/server/modelmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,8 @@ type request struct {
c chan<- error
}

// Run loop for the manager's internal actor that owns the model repository config
//
// # Maintains a slice of batched requests that are in process in the reload
// run loop for the manager's internal actor that owns the model repository config
// Maintains a slice of batched requests that are in process in the reload
//
// Returns results from the reload operation once it completes
// Receives a stream of requests from its channel
Expand Down
6 changes: 3 additions & 3 deletions scripts/fmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

# 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
#if [ "${PWD}" == "/opt/app" ]; then
# git config --global --add safe.directory "*"
#fi

pre-commit run --all-files
RETURN_CODE=$?
Expand Down

0 comments on commit a2b7326

Please sign in to comment.