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: README.md
-81Lines changed: 0 additions & 81 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -155,84 +155,3 @@ For more context and information see [issue #57](https://github.com/awalsh128/ca
155
155
### Cache Limits
156
156
157
157
A repository can have up to 5GB of caches. Once the 5GB limit is reached, older caches will be evicted based on when the cache was last accessed. Caches that are not accessed within the last week will also be evicted. To get more information on how to access and manage your actions's caches, see [GitHub Actions / Using workflows / Cache dependencies](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#viewing-cache-entries).
158
-
159
-
## Development
160
-
161
-
### Prerequisites
162
-
163
-
- **Go 1.20+** (for building the `apt_query` binary) - version specified in `go.mod`
164
-
- Install from [golang.org](https://golang.org/dl/) or via package manager
- Linux: `sudo apt-get install shellcheck`or see [shellcheck installation guide](https://github.com/koalaman/shellcheck#installing)
169
-
- Windows: Available via [scoop](https://scoop.sh/) or [chocolatey](https://chocolatey.org/)
170
-
171
-
### Building
172
-
173
-
The project includes Go binaries (`apt_query-arm64` and `apt_query-x86`) that are used by the shell scripts to query APT package information.
174
-
175
-
**Build all packages:**
176
-
```bash
177
-
go build -v ./...
178
-
```
179
-
180
-
**Build for specific architecture:**
181
-
```bash
182
-
# For ARM64 (Apple Silicon, ARM servers)
183
-
GOARCH=arm64 go build -o apt_query-arm64 ./src/cmd/apt_query
184
-
185
-
# For x86_64 (Intel/AMD)
186
-
GOARCH=amd64 go build -o apt_query-x86 ./src/cmd/apt_query
187
-
```
188
-
189
-
**Run tests:**
190
-
```bash
191
-
go test -v ./...
192
-
```
193
-
194
-
### Linting
195
-
196
-
This project uses [ShellCheck](https://github.com/koalaman/shellcheck) to ensure shell script quality and catch common errors. The configuration is stored in `.shellcheckrc`.
197
-
198
-
**Run ShellCheck locally:**
199
-
```bash
200
-
shellcheck *.sh
201
-
```
202
-
203
-
**IDE Integration:**
204
-
205
-
Many IDEs and editors can automatically run ShellCheck:
206
-
207
-
- **VS Code**: Install the [ShellCheck extension](https://marketplace.visualstudio.com/items?itemName=timonwong.shellcheck)
208
-
- **Vim/Neovim**: Use [ALE](https://github.com/dense-analysis/ale) or [coc-shellcheck](https://github.com/josa42/coc-shellcheck)
209
-
- **IntelliJ/CLion**: ShellCheck is integrated in recent versions
This project uses [golangci-lint](https://golangci-lint.run/) for Go code quality checks.
215
-
216
-
**Run golangci-lint locally:**
217
-
```bash
218
-
# Install golangci-lint (if not already installed)
219
-
# macOS: brew install golangci-lint
220
-
# Linux: See https://golangci-lint.run/usage/install/
221
-
222
-
golangci-lint run
223
-
```
224
-
225
-
**IDE Integration:**
226
-
227
-
- **VS Code**: Install the [Go extension](https://marketplace.visualstudio.com/items?itemName=golang.go) for syntax highlighting, auto-completion, and built-in linting
228
-
- **IntelliJ/GoLand**: Built-in Go support with linting and formatting
229
-
- **Vim/Neovim**: Use [vim-go](https://github.com/fatih/vim-go) for Go development
230
-
231
-
### CI/CD
232
-
233
-
The GitHub Actions workflows will automatically:
234
-
- **Build and test** Go code on pull requests
235
-
- **Run ShellCheck** on shell scripts (blocks PRs on failures)
236
-
- **Run golangci-lint** on Go code (blocks PRs on failures)
237
-
238
-
All checks run on pull requests and pushes to `master`, `dev`, and `staging` branches.
0 commit comments