Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Build Workspace except vendor folder #1060

Closed
RoarkeRandall opened this issue Jun 29, 2017 · 3 comments
Closed

Build Workspace except vendor folder #1060

RoarkeRandall opened this issue Jun 29, 2017 · 3 comments

Comments

@RoarkeRandall
Copy link

RoarkeRandall commented Jun 29, 2017

Hello, currently the setting "go.buildOnSave" only allows the 3 options: workspace, package, and off. If you are using glide or the vendoring directory & you use the workspace option, then it will build the entire vendoring folder. The directories to build are not a flag so I'm not sure how to handle this scenario.

For glide you would run go build $(glide novendor), is there a way to replicate this behavior on save?

@ramya-rao-a
Copy link
Contributor

I don't know of any other way other than looping through every sub directory and calling go build on the ones that are not vendor.

@ramya-rao-a
Copy link
Contributor

Fixed with #1074

@ramya-rao-a
Copy link
Contributor

The fix is out in the latest update (0.6.63) to the Go extension

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants