cred-alert icon indicating copy to clipboard operation
cred-alert copied to clipboard

Support or Instructions for Windows

Open stuwilliams-clgx opened this issue 6 years ago • 2 comments

Many developers in our organization are on Windows, and already have go installed.

  1. Is there a way to use this on Windows?
  2. If not, could that be fixed?
  3. If so, can that be added to the README

stuwilliams-clgx avatar Aug 14 '18 16:08 stuwilliams-clgx

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.

cf-gitbot avatar Aug 14 '18 16:08 cf-gitbot

We figured it out, you can use this (or a modification of it to help out windows users):

  1. Install go on your windows machine https://golang.org/dl/, you may need to reboot, or reopen your shell.

  2. Make a folder called: c:\go\src\github.com\pivotal-cf\cred-alert

Download the credhub code as a ZIP, and inside the zip the folder that whose contents match what is shown on GITHUB are the files and folders that need to be copied to this folder. When you are done, the root of the folder above should have the file main.go in it.

From that folder, issue the following command:

go install github.com/pivotal-cf/cred-alert

This will result in the files being compiled and the resulting EXE put into: c:\go\bin\cred-alert.exe

You can then add the bin folder to the path, or use the full path to run the scanner.

stuwilliams-clgx avatar Aug 14 '18 17:08 stuwilliams-clgx