From b184c8ae9f88e8fb84f1d703a6ce5be384ae0b12 Mon Sep 17 00:00:00 2001 From: Sean Smith Date: Wed, 4 Sep 2019 20:56:55 -0400 Subject: [PATCH] Hotfix todoist While waiting for upstream todoist to work, patch locally Use 'replace' to use locally vendored version, with modifications --- go.mod | 2 ++ vendor/github.com/darkSasori/todoist/go.mod | 8 ++++++++ vendor/github.com/darkSasori/todoist/todoist.go | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 vendor/github.com/darkSasori/todoist/go.mod diff --git a/go.mod b/go.mod index 739197bd..dfb4f065 100644 --- a/go.mod +++ b/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 diff --git a/vendor/github.com/darkSasori/todoist/go.mod b/vendor/github.com/darkSasori/todoist/go.mod new file mode 100644 index 00000000..8b42dbd0 --- /dev/null +++ b/vendor/github.com/darkSasori/todoist/go.mod @@ -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 +) diff --git a/vendor/github.com/darkSasori/todoist/todoist.go b/vendor/github.com/darkSasori/todoist/todoist.go index d487426c..12908472 100644 --- a/vendor/github.com/darkSasori/todoist/todoist.go +++ b/vendor/github.com/darkSasori/todoist/todoist.go @@ -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