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

Add go install and go build commands #287

Closed
ironcladlou opened this issue Apr 9, 2016 · 7 comments
Closed

Add go install and go build commands #287

ironcladlou opened this issue Apr 9, 2016 · 7 comments

Comments

@ironcladlou
Copy link
Contributor

Requirement extracted from discussion at #134 (comment). Also covered previously in #21.

I think it does make sense to go ahead with adding a Go: Install command to the extension whcih behaves similarly to the existing Go: Run tests commands.

I think it's okay for this to be fully separate from the diagnostic reporting and build-on-save.

The one place they should overlap is in reusing the go.buildFlags settings.

The big question is how to scope this. I can imagine either:

Run go install ./... in ${workspaceRoot}
Run go install in the directory of the currently opened file
For advanced uses, I'm okay with saying that folks should use VS Code Tasks. So I think this should try to cover the most common 80% for folks who don't want/need to set up the task.

@lukehoban lukehoban changed the title Add a go install command Add go install and go build commands Apr 15, 2016
@vastbinderj
Copy link

Why not mirror this functionality from the golang team plugin for sublime?

@lukehoban
Copy link
Member

@vastbinderj Sounds like a good idea.

@Mparaiso
Copy link

Mparaiso commented Jun 7, 2016

How about adding a new default task runner for Go ? when I execute the build command and I don't have tasks configured there is a menu that displays an number of task runners, why not add a default task runner for Go in that list ? Or can the plugin install a new default task runner ?

@sharno
Copy link

sharno commented Sep 17, 2017

Also "go run" is being ignored in this issue, it's so useful while developing scripts to test them on the fly. I'd appreciate adding it so much.

@ramya-rao-a
Copy link
Contributor

The below commands have been added and will be available in the next update

  • Go: Install Current Package
  • Go: Build Current Package
  • Go: Build Workspace

@Mparaiso
Copy link

thank you

@ramya-rao-a
Copy link
Contributor

The below commands are now available in the latest update to the Go extension (0.6.69)

  • Go: Install Current Package
  • Go: Build Current Package
  • Go: Build Workspace

@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

6 participants