mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Hotfix todoist
While waiting for upstream todoist to work, patch locally Use 'replace' to use locally vendored version, with modifications
This commit is contained in:
parent
34d6d03b43
commit
b184c8ae9f
2
go.mod
2
go.mod
@ -70,3 +70,5 @@ require (
|
||||
k8s.io/client-go v12.0.0+incompatible
|
||||
rsc.io/binaryregexp v0.2.0 // indirect
|
||||
)
|
||||
|
||||
replace github.com/darkSasori/todoist => ./vendor/github.com/darkSasori/todoist
|
||||
|
8
vendor/github.com/darkSasori/todoist/go.mod
generated
vendored
Normal file
8
vendor/github.com/darkSasori/todoist/go.mod
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
module github.com/darkSasori/todoist
|
||||
|
||||
go 1.12
|
||||
|
||||
require (
|
||||
github.com/darkSasori/todoist v0.0.0-20180625015933-ab3a9f0b9d55
|
||||
gopkg.in/jarcoal/httpmock.v1 v1.0.0-20180615191036-16f9a43967d6
|
||||
)
|
2
vendor/github.com/darkSasori/todoist/todoist.go
generated
vendored
2
vendor/github.com/darkSasori/todoist/todoist.go
generated
vendored
@ -12,7 +12,7 @@ import (
|
||||
|
||||
// Token save the personal token from todoist
|
||||
var Token string
|
||||
var todoistURL = "https://beta.todoist.com/API/v8/"
|
||||
var todoistURL = "https://api.todoist.com/rest/v1/"
|
||||
|
||||
func makeRequest(method, endpoint string, data interface{}) (*http.Response, error) {
|
||||
url := todoistURL + endpoint
|
||||
|
Loading…
x
Reference in New Issue
Block a user