How does `go build` decide which subdirectories to build when it is not given specific packages to build?

merlin2011

I have recently noticed that go build -a will build almost all, but not all packages in the subdirectories of my $GOPATH.

What algorithm does go build use to decide what to build?

The documentation for the go command did not specify, or I misread it.

Cerise Limón

If no path is specified, the 'go build' command builds the package in the current directory. The documentation is here.

The 'go build' command also builds any out of date dependencies.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

How/When does Execute Shell mark a build as failure in Jenkins?

From Java

What does go build build? (go build vs. go install)

From Java

Jenkins - how to build a specific branch

From Dev

NuGet not restoring packages on build

From Dev

Android Ant build causes runtime ClassNotFoundException when Eclipse build does not

From Dev

How to know which build tool is Intellij using?

From Dev

Where does the build.settings go?

From Dev

Does CMake offer a method to set the working directory for a given build system to use when running/debugging the project?

From Dev

How to specify which kernel to build with bitbake/yocto

From Dev

Oasis build configuration with subdirectories

From Dev

Fail build in Go when custom command fails

From Dev

How to optimize parallel build of subdirectories using GNU Make?

From Dev

"go build" does not generate file in golang

From Dev

How to remove specific permission when build Android app with gradle?

From Dev

how do i build libraries in subdirectories using cmake?

From Dev

How to build a query for expected given result

From Dev

How to know which user run build in Jenkinsfile

From Dev

How does Docker know when to use the cache during a build and when not?

From Dev

How does sudo decide whether to ask for a password, when given a command which doesn't actually need `sudo`?

From Dev

How to know which build tool is Intellij using?

From Dev

How to find which build paths a project is on

From Dev

How does Xcode determine which build config to use with custom build configs and multiple projects?

From Dev

Ant build to operate only on subdirectories

From Dev

How to optimize parallel build of subdirectories using GNU Make?

From Dev

Installing the latest build of packages

From Dev

How to build this specific JSON Format with the given input

From Dev

How to build a specific kernel module?

From Dev

how the build defintion unshelve the given shelveset during build process

From Dev

Which OpenJDK Build does Ubuntu use?

Related Related

  1. 1

    How/When does Execute Shell mark a build as failure in Jenkins?

  2. 2

    What does go build build? (go build vs. go install)

  3. 3

    Jenkins - how to build a specific branch

  4. 4

    NuGet not restoring packages on build

  5. 5

    Android Ant build causes runtime ClassNotFoundException when Eclipse build does not

  6. 6

    How to know which build tool is Intellij using?

  7. 7

    Where does the build.settings go?

  8. 8

    Does CMake offer a method to set the working directory for a given build system to use when running/debugging the project?

  9. 9

    How to specify which kernel to build with bitbake/yocto

  10. 10

    Oasis build configuration with subdirectories

  11. 11

    Fail build in Go when custom command fails

  12. 12

    How to optimize parallel build of subdirectories using GNU Make?

  13. 13

    "go build" does not generate file in golang

  14. 14

    How to remove specific permission when build Android app with gradle?

  15. 15

    how do i build libraries in subdirectories using cmake?

  16. 16

    How to build a query for expected given result

  17. 17

    How to know which user run build in Jenkinsfile

  18. 18

    How does Docker know when to use the cache during a build and when not?

  19. 19

    How does sudo decide whether to ask for a password, when given a command which doesn't actually need `sudo`?

  20. 20

    How to know which build tool is Intellij using?

  21. 21

    How to find which build paths a project is on

  22. 22

    How does Xcode determine which build config to use with custom build configs and multiple projects?

  23. 23

    Ant build to operate only on subdirectories

  24. 24

    How to optimize parallel build of subdirectories using GNU Make?

  25. 25

    Installing the latest build of packages

  26. 26

    How to build this specific JSON Format with the given input

  27. 27

    How to build a specific kernel module?

  28. 28

    how the build defintion unshelve the given shelveset during build process

  29. 29

    Which OpenJDK Build does Ubuntu use?

HotTag

Archive