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

Update tests to not fail on Mac M1's #1730

Merged
merged 1 commit into from
Apr 12, 2023

Conversation

shanedell
Copy link
Contributor

Update tests to not fail on Mac M1's.

Closes #1673

Copy link
Contributor

@wagoodman wagoodman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! ❤️ (haven't upgraded to an M1 yet, so this has been on the back burner)

@wagoodman wagoodman merged commit 661d256 into anchore:main Apr 12, 2023
@wagoodman wagoodman changed the title Update tests to not fail on Mac M1's. Update tests to not fail on Mac M1's Apr 12, 2023
@shanedell shanedell deleted the test-fix-mac-m1 branch April 12, 2023 15:11
@shanedell
Copy link
Contributor Author

@wagoodman One thing to note is that on M1's if images have not been built to support arm it will throw an error.

For example:

go run cmd/syft/main.go python:3.8

works fine however

go run cmd/syft/main.go registry1.dso.mil/ironbank/anchore/enterprise/enterprise:4.5.0

Will cause an error such as:

 ⠧ Pulling image           

2023/04/12 11:16:04 error during command execution: 1 error occurred:
        * failed to construct source from user input "registry1.dso.mil/ironbank/anchore/enterprise/enterprise:4.5.0": could not fetch image "registry1.dso.mil/ironbank/anchore/enterprise/enterprise:4.5.0": unable to use DockerDaemon source: image has unexpected architecture "amd64", which differs from the user specified architecture "arm64"

exit status 1

Not sure if this is a huge deal or not but wasn't sure if its something that would need to be documented. Would this need added any where to let users know that some images will not be supported yet on Apple Silicon and other arm devices?

spiffcs added a commit that referenced this pull request Apr 17, 2023
* main: (35 commits)
  Fix kernel cataloger test fixtures (#1742)
  feat: Support scanning license files in golang packages over the network (#1630)
  Add package-to-file location evidence relationships (#1698)
  Add Linux Kernel cataloger (#1694)
  Add annotations for evidence on package locations (#1723)
  add format make target (#1733)
  Update tests to not fail on Mac M1's. (#1730)
  chore(deps): update bootstrap tools to latest versions (#1728)
  Add support for nar files. (#1727)
  add highlevel details about catalogers (#1726)
  chore(deps): bump golang.org/x/net from 0.8.0 to 0.9.0 (#1722)
  chore(deps): update stereoscope to e95d60a265e384df29b7a139f5c5402d6ad72e06 (#1721)
  feat: gradle lockfile support (#1719)
  chore(deps): bump github.com/docker/docker (#1715)
  chore(deps): bump golang.org/x/mod from 0.9.0 to 0.10.0 (#1713)
  chore(deps): bump golang.org/x/term from 0.6.0 to 0.7.0 (#1714)
  chore(deps): bump github.com/spf13/cobra from 1.6.1 to 1.7.0 (#1716)
  chore(deps): bump peter-evans/create-pull-request from 4 to 5 (#1712)
  chore: update tools-golang to v0.5.0 (#1717)
  Add Nix cataloger (#1696)
  ...

Signed-off-by: Christopher Phillips <[email protected]>
GijsCalis pushed a commit to GijsCalis/syft that referenced this pull request Feb 19, 2024
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

Successfully merging this pull request may close these issues.

Test Fails on M1 Mac
2 participants