Skip to content

Commit

Permalink
fix(ci): remove docker setup and use sudo to sed buggy go file
Browse files Browse the repository at this point in the history
  • Loading branch information
jjacque committed Jun 9, 2024
1 parent c14cfd3 commit 21f312f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
if [ "${CPVER}" = "v0.3.0" ]
then
CPDIR="$(go list -m -json "github.com/hashicorp/go-secure-stdlib/plugincontainer"| jq -r '.Dir')"
sed -i 's@types\.Container@container.@g' "${CPDIR}/container_runner.go"
sudo sed -i 's@types\.Container@container.@g' "${CPDIR}/container_runner.go"
fi
- run:
name: Go fmt
Expand All @@ -47,7 +47,6 @@ jobs:
test:
executor: golang
steps:
- setup_remote_docker
- checkout
- restore_cache:
<<: *restore-cache
Expand All @@ -59,13 +58,11 @@ jobs:
if [ "${CPVER}" = "v0.3.0" ]
then
CPDIR="$(go list -m -json "github.com/hashicorp/go-secure-stdlib/plugincontainer"| jq -r '.Dir')"
sed -i 's@types\.Container@container.@g' "${CPDIR}/container_runner.go"
sudo sed -i 's@types\.Container@container.@g' "${CPDIR}/container_runner.go"
fi
- run:
name: Test
command: |
env
unset DOCKER_MACHINE_NAME
make test
- save_cache:
<<: *save-cache
Expand Down

0 comments on commit 21f312f

Please sign in to comment.