Error while installing Chaincode

Error: chaincode install failed with status: 500 - failed to invoke backing implementation of ‘InstallChaincode’: could not build chaincode: docker build failed: docker image build failed: docker build failed: Error returned from build: 1 "build io/fs: cannot load io/fs: open /chaincode/input/src/vendor/io/fs: no such file or directory
Getting this error when installing the chaincode

“build io/fs: cannot load io/fs: open /chaincode/input/src/vendor/io/fs: no such file or directory”
This error is caused by the failure to load the io/fs package during chaincode build. This can be caused by dependency issues. You need to make sure that your chaincode’s dependencies are set correctly. You may need to make sure your dependency files are in the correct path and update your chaincode to include the required dependencies.

“docker build failed: Error returned from build: 1”
This error is a generic error message encountered during docker image build. The chaincode could not be built because the docker image build failed. It may be helpful to look up the actual error message thrown by the docker build step.

Ubuntu: 23.04 version (VM)
Go install version: 1.20.5
FabricContractApi: v 1.2.1
Working directory where the source code : /artifacts/src/github.com/trafficlightchaincode/go
GO details:
Command ; which go
/usr/bin/go
Command: echo $GOROOT
/usr/local/go
Command: echo $GOPATH
/home/blockchain/go
Command: echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/blockchain/go/bin:/home/blockchain/fabric-samples/bin

go.mod
module github.com/trafficlightchaincode/go
go 1.20
require GitHub - hyperledger/fabric-contract-api-go: Packages for the implementation of the contract API for use in Go chaincode v1.2.1

gopls (server) shows

[Error - 11:20:52 AM] Request textDocument/semanticTokens/range failed.
Message: semantictokens are disabled
Code: 0
[Error - 11:21:11 AM] Request textDocument/hover failed.
Message: context canceled
Code: 0

Code uses following imports only:
package main

import (
“encoding/json”
“fmt”
“time”

"github.com/hyperledger/fabric-contract-api-go/contractapi"

)