Skip to content

:GoBuild is slower than expected when rebuilding binaries #2245

Open
@kevinburke

Description

@kevinburke

If I compile a file that has no changes to the file contents or dependencies using :GoBuild, I would expect it to take advantage of the build cache from the last time it compiled. Instead, vim-go issues go build -tags '' . errors from the directory of the file I am attempting to compile. This command never takes advantage of the build cache - it takes 4 seconds for the package I am trying to compile.

By contrast, :GoInstall does take advantage of the build cache. It seems like it is strictly better to use than :GoBuild. Even if you replaced :GoBuild with :GoInstall followed by rm -rf of the created artifacts, it seems like it would be faster than "go build."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions