Skip to content
Permalink
Browse files

Run go generate only on Windows

On Windows, we want to run goversioninfo, which embeds certain version
information into Windows binaries. However, despite compiling and
running on non-Windows systems, it isn't very useful there. Move the
go:generate comment into a separate file that's only built on Windows.
  • Loading branch information...
bk2204 committed Jan 14, 2019
1 parent 87d8248 commit 51fdfc258f0d31deb422d34f3aaa5415e91d377e
Showing with 4 additions and 2 deletions.
  1. +0 −2 git-lfs.go
  2. +4 −0 git-lfs_windows.go
@@ -1,5 +1,3 @@
//go:generate goversioninfo

package main

import (
@@ -0,0 +1,4 @@
//+build windows
//go:generate goversioninfo

package main

0 comments on commit 51fdfc2

Please sign in to comment.
You can’t perform that action at this time.