# 3.Version

## Fixed Version

```yaml
pkgver: "1.2.3"
```

Set a fixed version. `x_exec.pkgver` is still used to check for updates.

## Dynamic Version

Omit `pkgver` to always fetch from `x_exec.pkgver`:

```yaml
x_exec:
  pkgver: |
    curl -qfsSL "https://api.github.com/repos/owner/repo/releases/latest" | jq -r '.tag_name'
```

## Rolling Builds

For packages without versioned releases (nightly, git HEAD, etc.):

```yaml
_rolling: true
x_exec:
  pkgver: |
    echo "nightly-$(date +%Y%m%d)"
```

`_rolling: true` marks the package for periodic rebuilds regardless of version changes.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pkgforge.dev/sbuild/specification/3.version.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
