Windows (and Plan 9) DNS Config #17
No reviewers
Labels
No labels
Priority: High
Priority: Low
Priority: Medium
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: sam/awl#17
Loading…
Reference in a new issue
No description provided.
Delete branch "windows-DNS"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Newer version should compile properly, Plan 9 will be tested more when I have free time
Would close #14, #15
You can "cross-compile" by doing this
GOOS=windows GOARCH=amd64 go build
which builds it for Windows
HOWEVER
This may be a failure on my end using wrong compile flags but...
this was "resolved" by building it on the windows vm directly and then it actually ran as expected
Since Windows docker containers cannot be ran on Linux, most likely anything Windows related will need to be tested on Windows directly either in a vm or some other solution.
On further investigation this seems to be because of specific build constraints in the /x/sys/windows package
This means it is refusing to build on Linux which I thought we could mitigate by including our own build constraints.
So I pulled the windows stuff into it's own file and attempted to build the project with the following
so it would only build the file on windows/amd64 however I now get
which explains why I could only build it on the windows vm or with GOOS windows the /x/sys/windows/ package refuses to build unless GOOS=windows.
WIP: Windows DNS Configto WIP: Windows (and Plan 9) DNS ConfigWIP: Windows (and Plan 9) DNS Configto Windows (and Plan 9) DNS ConfigThere's some preproccessor magic I looked into, I think it works now (at least it did to me, but more samples would be appreciated)
I built awl and it worked both on the windows vm and when ran with wine, no other issues on my end building or running.
b6359ed047
to2e2d5187d1
Tests all look good, merging