CI goland binary build permission denied

Am trying to build a binary of my Golang application. The first instance build passed but the send instance using the same .gitlab-ci.yml file failed to remove the dependencies for rebuilding. Any help?
My .gitlab-ci.yml is as follow,

image: golang:1.15.3

variables:
  REPO_NAME: gitlab.com/daniel/nfapp
  GOPATH: $CI_PROJECT_DIR/.go
  
before_script:
  - mkdir -p .go
  - env
  
stages:
  - build
  
compile:
  stage: build
  script:
    - go build -race -ldflags "-extldflags '-static'" -o $CI_PROJECT_DIR/nfapp
  artifacts:
    paths:
      - nfapp

The first instance passed but the second build process show the following

Fetching changes with git depth set to 50… Reinitialized existing Git repository in /tmp/cibuilds/gCbWe2YV/0/cmc-group/nfapp/.git/ Checking out 157ee8bd as patch-5… warning: failed to remove .go/pkg/mod/golang.org/x/sys@v0.0.0-20201214210602-f9fddec55a1e/windows/syscall_test.go: Permission denied warning: failed to remove .go/pkg/mod/golang.org/x/sys@v0.0.0-20201214210602-f9fddec55a1e/windows/types_windows_amd64.go: Permission denied warning: failed to remove .go/pkg/mod/golang.org/x/sys@v0.0.0-20201214210602-f9fddec55a1e/windows/registry/syscall.go: Permission denied warning: failed to remove .go/pkg/mod/golang.org/x/sys@v0.0.0-20201214210602-f9fddec55a1e/windows/registry/export_test.go: Permission denied warning: failed to remove .go/pkg/mod/golang.org/x/sys@v0.0.0-20201214210602-f9fddec55a1e/windows/registry/zsyscall_windows.go: Permission denied warning: failed to remove .go/pkg/mod/golang.org/x/sys@v0.0.0-20201214210602-f9fddec55a1e/windows/registry/value.go: Permission denied warning: failed to remove .go/pkg/mod/golang.org/x/sys@v0.0.0-20201214210602-f9fddec55a1e/windows/registry/registry_test.go: Permission denied warning: failed to remove .go/pkg/mod/golang.org/x/sys@v0.0.0-20201214210602-f9fddec55a1e/windows/registry/key.go: Permission denied warning: failed to remove .go/pkg/mod/golang.org/x/sys@v0.0.0-20201214210602-f9fddec55a1e/windows/registry/mksyscall.go: Permission denied warning: failed to remove .go/pkg/mod/golang.org/x/sys@v0.0.0-20201214210602-f9fddec55a1e/windows/svc/mgr/recovery.go: Permission denied warning: failed to remove .go/pkg/mod/golang.org/x/sys@v0.0.0-20201214210602-f9fddec55a1e/windows/svc/mgr/service.go: Permission denied warning: failed to remove .go/pkg/mod/golang.org/x/sys@v0.0.0-20201214210602-f9fddec55a1e/windows/svc/mgr/config.go: Permission denied warning: failed to remove .go/pkg/mod/golang.org/x/sys@v0.0.0-20201214210602-f9fddec55a1e/windows/svc/mgr/mgr.go: Permission denied warning: failed to remove .go/pkg/mod/golang.org/x/sys@v0.0.0-20201214210602-f9fddec55a1e/windows/svc/mgr/mgr_test.go: Permission denied