Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output generated from Tern has 0 bytes #1249

Open
VenkatTechnologist opened this issue Feb 11, 2024 · 0 comments
Open

Output generated from Tern has 0 bytes #1249

VenkatTechnologist opened this issue Feb 11, 2024 · 0 comments

Comments

@VenkatTechnologist
Copy link

Describe the bug
My container has a two line Python program whose content is this:

import numpy
print ("Hello World!")

The Docker image for the program is:
REPOSITORY TAG IMAGE ID CREATED SIZE
ternd latest d6bd8a7ee130 25 minutes ago 238MB
helloworld 0.0.1 7483191c710c 25 hours ago 1.1GB <-------

I cloned tern and then ran the following command:
$ ./docker_run.sh ternd report -f json -i helloworld:0.0.1 > output.txt

The resulting output.txt is empty:

$ ls -al output.txt
-rw-r--r-- 1 vrama 197609 0 Feb 11 21:30 output.txt

To Reproduce
Please follow similar steps as explained above.

Error in terminal

Please see above

Expected behavior
I would expect output.txt to contain SBOM details including numpy's.

Environment you are running Tern on
Enter all that apply

  • Tern image built on Docker: ternd latest d6bd8a7ee130 32 minutes ago 238MB
  • Operating System: Windows 11
  • Vagrant file: NA
  • Docker version 25.0.2, build 29cf629
  • Python 3.12.1
  • Cloud environment: NA

Please attach files if they exist
NA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant