Windows Dev Guide

    This is the PowerShell script to run all go tests for Kustomize on a windows based platform which mimics /build/pre-commit.sh

    • PowerShell installed
      • PowerShell Core is supported
    • go installed
    • mdrip installed

    Assume:

    • Running a stock Windows 10 system
    • Local Admin rights.
    • You can open PowerShell as administrator
    • You should be knowledgeable enough to pull source for packages into your GO directory
      • Yes, this means you also need to know a bit about git usually

    Step 1 - Install Go

    • Install Go - please use the msi
      • If you use chocolatey - it’s using the zip not msi and assumptions on where go is located are made for you.

    Step 2 - Install Go Packages

    Step 3 - Get Source and Test

    • In your GoRoot src
      • Example: C:\_go\src
    • Navigate to the Kustomize directory
      • Example: C:\_go\src\sigs.k8s.io\kustomize\travis

    This should run all pre-commit tests thus defined in the script.