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
  • Merge requests
  • !1848

Go 1.10 support

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/linzhp/go1.10 into master Apr 12, 2018
  • Overview 16
  • Commits 3
  • Pipelines 0
  • Changes 5

Created by: linzhp

Before Go 1.10, the file name of .go and .c files generated by cgo contains full relative path to the cgo file, e.g.:

src_vendor_github.com_shirou_gopsutil_cpu_cpu_darwin_cgo.cgo1.go
src_vendor_github.com_shirou_gopsutil_cpu_cpu_darwin_cgo.cgo2.c

Go 1.10 makes it simpler and only include in cgo file name in the .go and .c file names:

cpu_darwin_cgo.cgo1.go
cpu_darwin_cgo.cgo2.c

Go 1.10 also added two methods to testing.testDeps. This PR also update the testmaingen.go.in so that the test main are generated correctly.

cc @monty-uber

@styurin @ttsugriy Please review.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/linzhp/go1.10