Skip to content

Commit f3b2571

Browse files
author
Luca Bruno
authored
Merge pull request #296 from purpleidea/feat/fix-api-change
dbus: Fix API break from godbus
2 parents c6f51f8 + 71aa0e7 commit f3b2571

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ services:
55

66
language: go
77
go:
8-
- "1.5.x"
8+
- "1.7.x"
99
- "1.10.x"
10+
- "1.11.x"
1011
go_import_path: github.com/coreos/go-systemd
1112

1213
env:

Gopkg.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
[[constraint]]
66
name = "github.com/godbus/dbus"
7-
version = "4.1.0"
7+
version = "5.0"
88

99
[prune]
1010
go-tests = true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Build Status](https://travis-ci.org/coreos/go-systemd.png?branch=master)](https://travis-ci.org/coreos/go-systemd)
44
[![godoc](https://godoc.org/github.com/coreos/go-systemd?status.svg)](http://godoc.org/github.com/coreos/go-systemd)
5-
![minimum golang 1.5](https://img.shields.io/badge/golang-1.5%2B-orange.svg)
5+
![minimum golang 1.7](https://img.shields.io/badge/golang-1.7%2B-orange.svg)
66

77

88
Go bindings to systemd. The project has several packages:

dbus/dbus.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func NewUserConnection() (*Conn, error) {
143143
func NewSystemdConnection() (*Conn, error) {
144144
return NewConnection(func() (*dbus.Conn, error) {
145145
// We skip Hello when talking directly to systemd.
146-
return dbusAuthConnection(func() (*dbus.Conn, error) {
146+
return dbusAuthConnection(func(opts ...dbus.ConnOption) (*dbus.Conn, error) {
147147
return dbus.Dial("unix:path=/run/systemd/private")
148148
})
149149
})
@@ -201,7 +201,7 @@ func (c *Conn) GetManagerProperty(prop string) (string, error) {
201201
return variant.String(), nil
202202
}
203203

204-
func dbusAuthConnection(createBus func() (*dbus.Conn, error)) (*dbus.Conn, error) {
204+
func dbusAuthConnection(createBus func(opts ...dbus.ConnOption) (*dbus.Conn, error)) (*dbus.Conn, error) {
205205
conn, err := createBus()
206206
if err != nil {
207207
return nil, err
@@ -221,7 +221,7 @@ func dbusAuthConnection(createBus func() (*dbus.Conn, error)) (*dbus.Conn, error
221221
return conn, nil
222222
}
223223

224-
func dbusAuthHelloConnection(createBus func() (*dbus.Conn, error)) (*dbus.Conn, error) {
224+
func dbusAuthHelloConnection(createBus func(opts ...dbus.ConnOption) (*dbus.Conn, error)) (*dbus.Conn, error) {
225225
conn, err := dbusAuthConnection(createBus)
226226
if err != nil {
227227
return nil, err

0 commit comments

Comments
 (0)