6 Commits
Author SHA1 Message Date
Daniel Canter 708df50a26 CI: Run tests on Go 1.17+
Add in a ^1.17.0 go-version for the actions/setup-go@v2 action. This
was set for our build step but not for the step that runs all of the
unit tests.

Signed-off-by: Daniel Canter <dcanter@microsoft.com>
2022-04-06 01:54:17 -07:00
Daniel Canter 02e8aff16e Assign ErrPipeListenerClosed to net.ErrClosed
This error used to just be a `errors.New` with the text exactly matching
the "use of closed network connection" that you'd get from the Go stdlib.
Now that that error was exported as `net.ErrClosed` in Go 1.16 we should
be able to swap to this safely, and anyone who relied on checking the
string explicitly should still be fine.

Signed-off-by: Daniel Canter <dcanter@microsoft.com>
2022-04-05 18:07:44 -07:00
Daniel Canter 4643510f75 Update README with DCO information + re-order into sections
This change updates the README to mention that we now require a valid
DCO on every commit via the bot. Also adds a new contributing section
that houses this info.

This change also re-orders the README into sections:
Contributing, Code of Conduct, Special Thanks

Signed-off-by: Daniel Canter <dcanter@microsoft.com>
2021-09-09 12:32:34 -07:00
Daniel Canter 1358edb607 Build the three binaries in this repo from the ci
Even though this repo is normally used as a dependency, there are some
sample binaries and tools built out of here. This just makes sure they still build
in the CI.

Signed-off-by: Daniel Canter <dcanter@microsoft.com>
2021-04-21 18:42:54 -07:00
Daniel Canter 83fd17628f Remove error if ATTACH_VIRTUAL_DISK_PARAMETERS wasn't version 2
* Version 2 didn't exist in RS5 so it's a bit silly to error out in this case.

Signed-off-by: Daniel Canter <dcanter@microsoft.com>
2021-01-18 02:50:23 -08:00
Daniel Canter e9604c63ae Add new virtdisk calls/refactor vhd package
This change adds bindings for AttachVirtualDisk and GetVirtualDiskPhysicalPath, some helper functions including
one to create a differencing vhd, exports the create and open parameters, exports the create flags and adds a couple
of missing flags. This will be used mainly to go hand in hand with the new computestorage calls added to hcsshim as all of the
vhd creation and setup needs to be done manually for these calls. https://github.com/microsoft/hcsshim/pull/881.

Signed-off-by: Daniel Canter <dcanter@microsoft.com>
2020-11-30 08:23:06 -08:00