Skip to content

Conversation

@willmurphyscode
Copy link
Contributor

Support windows by:

  1. Changing goreleaser config to make windows release artifacts
  2. Changing PR and pre-release validations to run new CLI tests on windows runner

Closes #17

Signed-off-by: Will Murphy <will.murphy@anchore.com>
@willmurphyscode willmurphyscode marked this pull request as draft May 9, 2024 18:58
@willmurphyscode
Copy link
Contributor Author

Something isn't working with the Windows validations:

  make test
  shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
  env:
    FORCE_COLOR: true
bash: line 1: .tool/task: No such file or directory
bash: line 1: .tool/task: No such file or directory
make: 'test' is up to date.

It looks like the windows validations just didn't do anything, but still turned green (https://github.com/anchore/binny/actions/runs/9022127458/job/24790946459?pr=22#step:4:9).

Maybe making the test target depend on the tools target is enough?

Signed-off-by: Will Murphy <will.murphy@anchore.com>
Signed-off-by: Will Murphy <will.murphy@anchore.com>
Signed-off-by: Will Murphy <will.murphy@anchore.com>
Signed-off-by: Will Murphy <will.murphy@anchore.com>
Signed-off-by: Will Murphy <will.murphy@anchore.com>
This reverts commit 342e7b0.

Signed-off-by: Will Murphy <will.murphy@anchore.com>
This reverts commit 0ba0e61.

Signed-off-by: Will Murphy <will.murphy@anchore.com>
Signed-off-by: Will Murphy <will.murphy@anchore.com>
Signed-off-by: Will Murphy <will.murphy@anchore.com>
Otherwise, for example, downloading syft.exe on windows results in a
file called syft, which windows doesn't necessarily know it can execute.

Signed-off-by: Will Murphy <will.murphy@anchore.com>
Moving another shell utility to a python one-liner to try to make
binny's test suite work on windows.

Signed-off-by: Will Murphy <will.murphy@anchore.com>
Signed-off-by: Will Murphy <will.murphy@anchore.com>
Signed-off-by: Will Murphy <will.murphy@anchore.com>
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.

Support Windows

1 participant