Skip to content

Commit 5235213

Browse files
authored
Merge pull request #91 from ehdwn1991/golang_fix
[Enhancement] Golang go list option Fix
2 parents 32ff16f + ac8d9f6 commit 5235213

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)