Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B buck
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 201
    • Issues 201
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • buck
  • Issues
  • #1704
Closed
Open
Issue created Jan 07, 2018 by Administrator@rootContributor

go_test doesn't copy deps from go_library

Created by: linzhp

The go_test doc says the library param

will copy the srcs, package_name and deps from the target specified so you don't have to duplicate them.

However, it seems that deps are not copied. All deps of the go_libary a go_test is targeting have to be duplicated in the deps of the go_test.

I created a small example here to illustrate the bug. From the project root, if you run buck test //goTestDeps:all_tests, the test will build and run successfully. However, buck test will fail if you remove this line from the BUCK file, which simply duplicates the deps in //goTestDeps:lib, although //goTestDeps:all_tests has no direct dependency on gopkg.in/yaml.v2.

Assignee
Assign to
Time tracking