Comments (8)
Hey Michael,
I'm sorry that this broke your build, I see that you have already committed an update on your side. We planned already to use vgo, as this project is now more widely used. For now I will commit to avoid breaking changes until we have switched to versioning. Would that be OK for you?
from dhcp.
After PR #279, github.com/u-root/u-root
is the only dependency showing up as incompatible when enabling Go modules:
cat go.mod
module github.com/insomniacslk/dhcp
go 1.12
require (
github.com/fanliao/go-promise v0.0.0-20141029170127-1890db352a72
github.com/hugelgupf/socketpair v0.0.0-20190312070548-ac4bdefbf625
github.com/jsimonetti/rtnetlink v0.0.0-20190429090657-99ed6b5c17d2
github.com/mdlayher/ethernet v0.0.0-20190313224307-5b5fc417d966
github.com/mdlayher/netlink v0.0.0-20190423160922-382af5ec7c57
github.com/mdlayher/raw v0.0.0-20190419142535-64193704e472
github.com/stretchr/testify v1.3.0
github.com/u-root/u-root v4.0.0+incompatible
golang.org/x/net v0.0.0-20190424112056-4829fb13d2c6
golang.org/x/sys v0.0.0-20190429094411-2cc0cad0ac78
)
I think this is because u-root is using major version numbers without following the semantic import versioning convention (i.e. /v4 in the import path for major version 4). I would guess that u-root doesn’t really consider itself a library package.
However, it seems like u-root is only pulled in for the uio package, which provides endianness conversion. Those conversions are easily expressed in a helper package (see e.g. https://github.com/google/nftables/blob/master/binaryutil/binaryutil.go), which seems preferable to an external dependency.
from dhcp.
u-root does think of itself as a library,
Okay, that’s good to know
but we haven't gotten around to modules support yet.
Is there an issue we can follow? I’d like to see u-root work with modules rather sooner than later, especially given that Go 1.13 is on the horizon, which (IIRC) wants to make modules default-on.
from dhcp.
For u-root, there's this bug: u-root/u-root#805. This was one attempt: u-root/u-root#1152. Unfortunately, it's not as easy as running "go mod init".
It seems there are two separate milestones for supporting modules in u-root. The first is to support importing versioned u-root packages as @stapelberg is doing. It appears this can be done while maintaining compatibility with GOPATH and thus u-root's existing build system. The second milestone would be the more difficult task of adding modules support to u-root's build system.
I'll try to look into this more later this week. It seems https://github.com/u-root/NiChrome/blob/master/go.mod is suffering the same.
from dhcp.
Sure thing, thanks for your reply! :)
from dhcp.
We are not far from a stable 1.0 release :) Will get back to this soon
from dhcp.
u-root does think of itself as a library, but we haven't gotten around to modules support yet. (Switching is not trivial for us.)
cc @rjoleary
from dhcp.
The uio package is a common helper package we have for marshaling stuff. It's not just endianness conversion, but also deferred error handling so that code doesn't become littered with if err
blocks.
I'd rather not have 3 different copies of that code to maintain, so I prefer it stay as a dependency.
from dhcp.
Related Issues (20)
- dhcpv4 malformed packet HOT 3
- Existing check that c.ifaceHWAddr == msg.ClientHWAddr HOT 2
- Implement NewIPv6UDPConn for Windows HOT 1
- Construction of offer message by DHCP server HOT 1
- panic parsing UDP packet HOT 2
- Why are we sorting options during Marshal ? HOT 1
- DHCP Options to support RFC8572 SZTP HOT 2
- RFC 1035 Labels: Support Partial Domain Names as per RFC 4704 Section 4.2 HOT 1
- Panic on DiscoverOffer HOT 1
- Writing a DHCPv4 server on Windows. Is it supported? HOT 7
- OptClientArchType does not get the arch field value HOT 3
- IsOptionRequested does not work with GenericOptionCode HOT 4
- 2 byte code length
- Support Windows HOT 3
- Rapid Solicit not working HOT 2
- Build-scoping issue in dhcpv4/nclient4/conn_unix.go (also: BSD support for nclient4) HOT 1
- dhcpv6 mask and gateway HOT 3
- What does the NumSeconds option stand for? HOT 4
- Add Tinkerbell/smee as project using this project HOT 1
- Missed DHCP Offer packet HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dhcp.