paths

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package paths centralizes filesystem layout constants and helpers for qlt.

Index

Constants

View Source
const DefaultBundleDir = ".qlt/bundle"

DefaultBundleDir is the per-user directory (relative to $HOME) where qlt stores downloaded CodeQL bundle archives. The layout is:

$HOME/DefaultBundleDir/<md5(bundleName)>/codeql/             ← extracted bundle
$HOME/DefaultBundleDir/<md5(bundleName)>/codeql-bundle.tar.gz
$HOME/DefaultBundleDir/<md5(bundleName)>/codeql-bundle.tar.gz.checksum.txt
View Source
const DefaultCustomBundleDir = "target/custom-bundle"

DefaultCustomBundleDir is the directory (relative to --base) where qlt stores custom CodeQL bundles created by `qlt phase package`. The layout is:

<base>/target/custom-bundle/<md5(bundleName)>/codeql-bundle.tar.gz
View Source
const DefaultPackagesDir = ".qlt/packages"

DefaultPackagesDir is the per-user directory (relative to $HOME) where qlt installs CodeQL CLI binaries. The layout is:

$HOME/DefaultPackagesDir/<md5(version)>/codeql/              ← extracted CLI
$HOME/DefaultPackagesDir/<md5(version)>/codeql-<platform>.zip
$HOME/DefaultPackagesDir/<md5(version)>/codeql-<platform>.zip.checksum.txt

Variables

This section is empty.

Functions

func BundleArchivePath

func BundleArchivePath(bundleName string) (string, error)

BundleArchivePath returns the expected path for a named bundle archive: $HOME/.qlt/bundle/<md5(bundleName)>/codeql-bundle.tar.gz.

func BundleInstallDir

func BundleInstallDir(bundleName string) (string, error)

BundleInstallDir returns $HOME/.qlt/bundle/<md5(bundleName)> for the given bundle.

func CLIArchivePath

func CLIArchivePath(version string) (string, error)

func CLIInstallDir

func CLIInstallDir(version string) (string, error)

CLIInstallDir returns $HOME/.qlt/packages/<md5(version)> for the given version.

func CustomBundlePath

func CustomBundlePath(base, bundleName string) (string, error)

CustomBundlePath returns the output path for a custom bundle created by `qlt phase package`: <base>/target/custom-bundle/<md5(bundleName)>/codeql-bundle.tar.gz.

func ResolveCodeQLBinary

func ResolveCodeQLBinary(base string) (string, error)

ResolveCodeQLBinary returns the path to the codeql binary. When EnableCustomCodeQLBundles is true in config it resolves the binary from the installed bundle; otherwise it resolves the standalone CLI installation. Falls back to codeql found on PATH.

func VersionTag

func VersionTag(version string) string

VersionTag normalizes a version string to a "v"-prefixed git tag (e.g. "2.25.1" → "v2.25.1", "v2.25.1" → "v2.25.1").

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL