Skip to content

Commit

Permalink
[-] fix generation for Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
pashagolub committed Aug 26, 2024
1 parent d25a8b0 commit ea78910
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
run: |
go mod download
go version
go generate ./...
go build
- name: GolangCI-Lint
Expand Down
3 changes: 0 additions & 3 deletions iphlpapi/iphlpapi.go → iphlpapi/iphlpapi_windows.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
//go:build windows
// +build windows

package iphlpapi

//sys AddIPAddress(Address uint32, IpMask uint32, IfIndex uint32, NTEContext *uint32, NTEInstance *uint32) (errcode error) = iphlpapi.AddIPAddress
Expand Down
6 changes: 2 additions & 4 deletions iphlpapi/mksyscall.go → iphlpapi/mksyscall_windows.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
//go:build windows
// +build windows

//go:build generate
// +build generate

package iphlpapi

//go:generate go run golang.org/x/sys/windows/mkwinsyscall -output ziphlapi_windows.go iphlpapi.go
//go:generate go run golang.org/x/sys/windows/mkwinsyscall -output ziphlapi_windows.go iphlpapi_windows.go

0 comments on commit ea78910

Please sign in to comment.