Symptoms: In PASW 2.2 and 2.1, the post-deploy 'Install HWC Buildpack' errand fails due to the '-s' flag included in the 'create-buildpack' and 'update-buildpack' command.
The error shown by the errand is as follows:
Use 'cf.exe target' to view or set your target org and space.
FAILED
Stderr
Option '-s' requires CF API version 2.114.0 or higher. Your target is 2.112.0. 1 errand(s)
Errand 'install-hwc-buildpack' completed with error (exit code 1)
Exit code 1
Environment
Cause
The '-s' flag of the 'cf create-buildpack' and 'cf update-buildpack' command is used to associate a stack with the buildpack, which is a new feature in PAS 2.3. The CF API in PAS 2.2 and 2.1 does not recognise this flag and the create/update command fails.
Resolution
Install the release of the PASW tile which has the HWC buildpack containing the fix for this issue (hwc-buildpack v3.0.3). hwc-buildpack v3.0.3 is included with PASW 2.3.2 https://docs.pivotal.io/pivotalcf/2-3/pcf-release-notes/runtime-rn.html#2.3.2