Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Oct 2, 2024
1 parent b95a165 commit 995d807
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .evergreen/run-task.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
#
#
# Source the env.sh file and run the given task
set -eu

Expand All @@ -10,4 +10,4 @@ pushd ${PROJECT_DIRECTORY} > /dev/null
source env.sh
task "$@"

popd > /dev/null
popd > /dev/null
4 changes: 2 additions & 2 deletions .evergreen/setup-system.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
#
#
# Set up environment and write env.sh and expansion.yml files.
set -eu

Expand Down Expand Up @@ -88,4 +88,4 @@ PROJECT_DIRECTORY: "$PROJECT_DIRECTORY"
RUN_TASK: "$PROJECT_DIRECTORY/.evergreen/run-task.sh"
EOT

cat env.sh
cat env.sh
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ api-report.txt
# Ignore secrets files
secrets-expansion.yml
secrets-export.sh
.test.env
.test.env
2 changes: 1 addition & 1 deletion etc/check_license.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ do
case "${flag}" in
a) add=1;;
v) verbose=1;;
*)
*)
echo "flag not recognized"
exit 1
;;
Expand Down
3 changes: 2 additions & 1 deletion etc/golangci-lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export GOARCH=
# Keep this in sync with go version used in static-analysis Evergreen build variant.
go install golang.org/dl/go1.22.7@latest
go1.22.7 download
export PATH="$(go1.22.7 env GOROOT)/bin:$PATH"
PATH="$(go1.22.7 env GOROOT)/bin:$PATH"
export PATH
go install github.com/golangci/golangci-lint/cmd/[email protected]

export GOOS=$GOOS_ORIG
Expand Down
4 changes: 2 additions & 2 deletions etc/run-mongodb-aws-ecs-test.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ "${SKIP_ECS_AUTH_TEST:-}" = "true" ]; then
fi

task build-aws-ecs-test

AUTH_AWS_DIR=${DRIVERS_TOOLS}/.evergreen/auth_aws
ECS_SRC_DIR=$AUTH_AWS_DIR/src

Expand All @@ -18,4 +18,4 @@ cp ${PROJECT_DIRECTORY}/.evergreen/run-mongodb-aws-ecs-test.sh $ECS_SRC_DIR/.eve
tar -czf $ECS_SRC_DIR/src.tgz -C ${PROJECT_DIRECTORY} .

export PROJECT_DIRECTORY="$ECS_SRC_DIR"
$AUTH_AWS_DIR/aws_setup.sh ecs
$AUTH_AWS_DIR/aws_setup.sh ecs

0 comments on commit 995d807

Please sign in to comment.