Comments (1)
[ Quoting [email protected] in "[dns] API versioning (#26)..." ]
This is a follow-up to the remark I made about that in #25:
Just thinking out loud here:
It'd be nice if there was some way to have my build break when the dns API
changes in maybe-incompatible ways. Because I use cgo I build my server on 3-4
different boxes, so my process for "keeping in sync" has just been to go get -u
-v, but then it's hard to know exactly which version of dns I got.For geodns itself I build it with
REVISION=
git rev-parse --short=8 HEAD
go build -ldflags "-X main.gitVersion $REVISION" -v... maybe I should just add another version like that for the dnsGitVersion.
As for you making a subdirectory for "v2", that sounds like a huge hassle. I
think just do it on a branch, and if you need to keep v1 around when v2 is
ready to be merged setup a separate git repository that people can import and
alias to dns if they need the old version.
Haven't made the v2 switch yet, because as you say "it's a hassle" :)
Problem is that 'go get' does not know how to deal with branches afaik.
Same goes for tags.
I've seen the makefile of geodns and I like the idea of embedding versioning
info the binary (the one feature I miss from svn:
git is incompatible with 'go get', so for a package like dns this can not
be done.
Thanks for saying, don't do manual (v2) branches, I'll just have to be more
prudent about the code I submit into the master branch.
Regards,
Miek Gieben http://miek.nl
from dns.
Related Issues (20)
- IsFqdn performance issues HOT 3
- `(*dns.OPT).SetDo` ignores several arguments HOT 2
- Potential goroutine leak in server.go HOT 1
- Consider using `netip.Addr` and `netip.Prefix`? HOT 1
- upstream message helper that return overflow errors is not using any of the exported defined errors HOT 1
- Error QUERYDNS read udp 127.0.0.1:49630->127.0.0.1:53: i/o timeout
- Vulnerability of dependency "golang.org/x/net" HOT 1
- $INCLUDE and relative paths HOT 2
- Some question on rndc command
- Decoding of some "special" characters results in \DDD+ HOT 1
- Optional interface for a ResponseWriter to expose Conns HOT 3
- Expose SVCB Service Params fully to clients HOT 2
- Corner case where offset is equal to len(msg), response is truncated without TC bit set and no error is raised HOT 1
- Method for creating wire-format dns.Header from *dns.Msg? HOT 2
- [Query] Type65 aka HTTPS HOT 2
- RFC 2136: Dynamic updates HOT 3
- Add isdn record HOT 1
- Message pack and unpack fails with an empty name in a RR header HOT 1
- Duplicate DNS rCode? HOT 2
- dns: overflow unpacking uint16 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 dns.