Warning: Some packages could not be found

Open
#1,980 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
github-actions, go
Domain
ci-cd, security

Research direction

Start by reproducing the Golang CodeQL check for github.com/CiscoDevNet/terraform-provider-cdo and inspect the go.mod replace directive pointing to ../client. Determine why the local package references are not resolved; done means the check completes without those unresolved-reference warnings.

Written by the indexing model from the issue text.

Description

Hi guys, I ran the Golang CodeQL checks on this repository: https://github.com/CiscoDevNet/terraform-provider-cdo and found that it is unable to resolve some references. Those references are replaced in the go.mod file to a local package like this:

replace github.com/CiscoDevnet/terraform-provider-cdo/go-client => ../client

however, it seems like the tool does not recognise this:
Screenshot 2023-11-02 at 21 19 34

May I know how can I resolve this? Any help is appreciated!

Dominant language
TypeScript
Stars
1.6k
Forks
493
Avg merge
1d 13h
Merged PRs (30d)
44

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/codeql-action

All issues in github/codeql-action

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.