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
* add instructions on adding GITHUB_TOKEN as env variable on machine
* add .github-token to gitignore and add additional info in build instructions
* remove github-token from gitignore because its meant to be in home dir. Bold this part in the README so its more clear
* add ctags installation instructions to readme
* link to ctags repo in README
* remove unnecessary line change in gitignore
Generate a GitHub Personal Access Token (PAT) [here](https://github.com/settings/tokens/new). If you are indexing public repositories only, you can select the `public_repo` scope, otherwise you will need the `repo` scope.
56
+
Generate a GitHub Personal Access Token (PAT) [here](https://github.com/settings/tokens/new). If you're only indexing public repositories select the `public_repo` scope; otherwise, select the `repo` scope.
57
+
58
+
You'll need to pass this PAT each time you run Sourcebot, so we recommend adding it as an environment variable. In this guide, we'll add the Github PAT as an environment variable called `GITHUB_TOKEN`:
59
+
```sh
60
+
export GITHUB_TOKEN=<your-token-here>
61
+
```
62
+
63
+
If you'd like to persist this environment variable across shell sessions, please add this line to your shell config file (ex. `~/.bashrc`, `~/.bash_profile`, etc)
64
+
57
65
58
66
</details>
59
67
@@ -78,8 +86,9 @@ Sourcebot also supports indexing GitLab & BitBucket. Checkout the [index.json](.
1. Install <a href="https://go.dev/doc/install"><img src="https://go.dev/favicon.ico" width="16" height="16"> go</a> and <a href="https://nodejs.org/"><img src="https://nodejs.org/favicon.ico" width="16" height="16"> NodeJS</a>. Note that a NodeJS version of at least `21.1.0` is required.
132
+
133
+
2. Install [ctags](https://github.com/universal-ctags/ctags) (required by zoekt-indexserver):
2. Run make to build zoekt and install dependencies:
142
+
4. Run make to build zoekt and install dependencies:
130
143
```sh
131
144
cd sourcebot
132
145
make
@@ -157,7 +170,7 @@ The zoekt binaries and web dependencies are placed into `bin` and `node_modules`
157
170
158
171
Generate a GitHub Personal Access Token (PAT) [here](https://github.com/settings/tokens/new). If you are indexing public repositories only, you can select the `public_repo` scope, otherwise you will need the `repo` scope.
159
172
160
-
Create a text file named `.github-token` in your home directory and paste the token in it. The file should look like:
173
+
Create a text file named `.github-token` **in your home directory** and paste the token in it. The file should look like:
0 commit comments