Skip to content

Commit ac8d9f6

Browse files
committed
[Enhancement] Golang go list option Fix
Signed-off-by: codex <[email protected]>
1 parent 32ff16f commit ac8d9f6

File tree

1 file changed

+2
-2
lines changed
  • src/fosslight_dependency/package_manager

1 file changed

+2
-2
lines changed

src/fosslight_dependency/package_manager/Go.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def __del__(self):
3636
def run_plugin(self):
3737
ret = True
3838

39-
logger.info("Execute 'go list -m -json all' to obtain package info.")
40-
cmd = f"go list -m -json all > {self.tmp_file_name}"
39+
logger.info("Execute 'go list -m -mod=mod -json all' to obtain package info.")
40+
cmd = f"go list -m -mod=mod -json all > {self.tmp_file_name}"
4141

4242
ret_cmd = subprocess.call(cmd, shell=True)
4343
if ret_cmd != 0:

0 commit comments

Comments
 (0)