You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/cachedirectory/cachedirectory.go
+10-9Lines changed: 10 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
package cachedirectory
2
2
3
3
import (
4
-
"fmt"
4
+
usererrors "errors"
5
5
"io"
6
6
"io/ioutil"
7
7
"os"
@@ -15,7 +15,8 @@ import (
15
15
consterrorCacheWrongVersion="The cache you are trying to push was created with an old version of the CodeQL Action Sync tool. Please re-pull it with this version of the tool."
16
16
consterrorNotACacheOrEmpty="The cache directory you have selected is not empty, but was not created by the CodeQL Action Sync tool. If you are sure you want to use this directory, please delete it and run the sync tool again."
17
17
consterrorCacheParentDoesNotExist="Cannot create cache directory because its parent, does not exist."
18
-
consterrorPushNonCache="The directory you have provided does not appear to be valid. Please check it exists and that you have run the `pull` command to populate it."
18
+
consterrorPushNonCache="The cache directory you have provided does not appear to be valid. Please check it exists and that you have run the `pull` command to populate it."
19
+
consterrorCacheLocked="The cache directory is locked, likely due to a `pull` command being interrupted. Please run `pull` again to ensure all required data is downloaded."
returnerrors.New("The cache directory is locked, likely due to a `pull` command being interrupted. Please run `pull` again to ensure all required data is downloaded.")
consterrorAlreadyExists="The destination repository already exists, but it was not created with the CodeQL Action sync tool. If you are sure you want to push the CodeQL Action to it, re-run this command with the `--force` flag."
36
+
consterrorInvalidDestinationToken="The destination token you've provided is not valid."
returnnil, usererrors.New("The destination token you have provided does not have the `site_admin` scope, so the destination organization cannot be created.")
0 commit comments