Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go: support //go:embed directives with embedsrcs attribute #2806

Merged
merged 3 commits into from
Feb 24, 2021

Commits on Feb 2, 2021

  1. go: support //go:embed directives with embedsrcs attribute

    go_library, go_binary, and go_test now support the //go:embed
    directive in Go 1.16. When building a package containing a //go:embed
    directive, they'll match patterns against embedable files to generate
    an embedcfg file to pass to the compiler.
    
    Embeddable files must be listed in the new embedsrcs attribute.
    
    The GoSource provider now has an embedsrcs field to support this.
    
    Fixes bazelbuild#2775
    Jay Conrod committed Feb 2, 2021
    Configuration menu
    Copy the full SHA
    5944a82 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2021

  1. Merge branch 'master' into embedsrcs

    Jay Conrod committed Feb 22, 2021
    Configuration menu
    Copy the full SHA
    05ad473 View commit details
    Browse the repository at this point in the history
  2. add comments around call to buildEmbedcfgFile

    Jay Conrod committed Feb 22, 2021
    Configuration menu
    Copy the full SHA
    55c5a0f View commit details
    Browse the repository at this point in the history