Skip to content

Commit

Permalink
Merge pull request #119 from inovex/dependabot/go_modules/github.com/…
Browse files Browse the repository at this point in the history
…emersion/go-webdav-0.5.0

chore(deps): bump github.com/emersion/go-webdav from 0.4.0 to 0.5.0
  • Loading branch information
Alexander Huck authored Jan 30, 2024
2 parents 5faec59 + 75998a6 commit 8922bf1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
github.com/cenkalti/backoff/v4 v4.2.1
github.com/charmbracelet/log v0.3.1
github.com/emersion/go-ical v0.0.0-20220601085725-0864dccc089f
github.com/emersion/go-webdav v0.4.0
github.com/emersion/go-webdav v0.5.0
github.com/microcosm-cc/bluemonday v1.0.26
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8
github.com/stretchr/testify v1.8.4
Expand Down Expand Up @@ -51,7 +51,7 @@ require (
github.com/rivo/uniseg v0.2.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/stretchr/objx v0.5.0 // indirect
github.com/teambition/rrule-go v1.7.2 // indirect
github.com/teambition/rrule-go v1.8.2 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0 // indirect
Expand Down
9 changes: 5 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/emersion/go-ical v0.0.0-20220601085725-0864dccc089f h1:feGUUxxvOtWVOhTko8Cbmp33a+tU0IMZxMEmnkoAISQ=
github.com/emersion/go-ical v0.0.0-20220601085725-0864dccc089f/go.mod h1:2MKFUgfNMULRxqZkadG1Vh44we3y5gJAtTBlVsx1BKQ=
github.com/emersion/go-vcard v0.0.0-20191221110513-5f81fa0d3cc7/go.mod h1:HMJKR5wlh/ziNp+sHEDV2ltblO4JD2+IdDOWtGcQBTM=
github.com/emersion/go-webdav v0.4.0 h1:iIkgitJBUNu2c1vL0KqqRb5jDjs38bzM/H7WxewrIh4=
github.com/emersion/go-webdav v0.4.0/go.mod h1:lkPYZO/vsDNV9GPyVMBBsAUZzzxINL97bEVFykApo58=
github.com/emersion/go-vcard v0.0.0-20230815062825-8fda7d206ec9/go.mod h1:HMJKR5wlh/ziNp+sHEDV2ltblO4JD2+IdDOWtGcQBTM=
github.com/emersion/go-webdav v0.5.0 h1:Ak/BQLgAihJt/UxJbCsEXDPxS5Uw4nZzgIMOq3rkKjc=
github.com/emersion/go-webdav v0.5.0/go.mod h1:ycyIzTelG5pHln4t+Y32/zBvmrM7+mV7x+V+Gx4ZQno=
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
Expand Down Expand Up @@ -116,8 +116,9 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/teambition/rrule-go v1.7.2 h1:goEajFWYydfCgavn2m/3w5U+1b3PGqPUHx/fFSVfTy0=
github.com/teambition/rrule-go v1.7.2/go.mod h1:mBJ1Ht5uboJ6jexKdNUJg2NcwP8uUMNvStWXlJD3MvU=
github.com/teambition/rrule-go v1.8.2 h1:lIjpjvWTj9fFUZCmuoVDrKVOtdiyzbzc93qTmRVe/J8=
github.com/teambition/rrule-go v1.8.2/go.mod h1:Ieq5AbrKGciP1V//Wq8ktsTXwSwJHDD5mD/wLBGl3p4=
github.com/thlib/go-timezone-local v0.0.0-20210907160436-ef149e42d28e h1:BuzhfgfWQbX0dWzYzT1zsORLnHRv3bcRcsaUk0VmXA8=
github.com/thlib/go-timezone-local v0.0.0-20210907160436-ef149e42d28e/go.mod h1:/Tnicc6m/lsJE0irFMA0LfIwTBo4QP7A8IfyIv4zZKI=
github.com/urfave/cli/v2 v2.27.1 h1:8xSQ6szndafKVRmfyeUMxkNUJQMjL1F2zmsZ+qHpfho=
Expand Down
8 changes: 4 additions & 4 deletions internal/adapter/zep/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ func (zep *CalendarAPI) Initialize(ctx context.Context, config map[string]interf
}

// finds the principal path of the user
zep.principal, err = zep.client.FindCurrentUserPrincipal()
zep.principal, err = zep.client.FindCurrentUserPrincipal(context.Background())
if err != nil {
return fmt.Errorf("unable to find user principal: %w", err)
}

// finds the base path to the users calendars
zep.homeSet, err = zep.client.FindCalendarHomeSet(zep.principal)
zep.homeSet, err = zep.client.FindCalendarHomeSet(context.Background(), zep.principal)
if err != nil {
return fmt.Errorf("unable to find calendar homeSet: %w", err)
}
Expand Down Expand Up @@ -113,7 +113,7 @@ func (zep *CalendarAPI) EventsInTimeframe(ctx context.Context, start time.Time,

// ListEvents returns all events of the given calendar of a user (if it exists).
func (zep *CalendarAPI) ListEvents(from, to time.Time) ([]Event, error) {
calendars, err := zep.client.FindCalendars(zep.homeSet)
calendars, err := zep.client.FindCalendars(context.Background(), zep.homeSet)
if err != nil {
return nil, fmt.Errorf("cannot find calendars: %w", err)
}
Expand All @@ -126,7 +126,7 @@ func (zep *CalendarAPI) ListEvents(from, to time.Time) ([]Event, error) {
}

// query all events inside the given time range (inclusive)
ret, err := zep.client.QueryCalendar(eventCalendar.Path, &caldav.CalendarQuery{
ret, err := zep.client.QueryCalendar(context.Background(), eventCalendar.Path, &caldav.CalendarQuery{
CompRequest: caldav.CalendarCompRequest{
Name: "VCALENDAR",
AllProps: true,
Expand Down

0 comments on commit 8922bf1

Please sign in to comment.