jdx/mise · error
SwiftPM artifact bundles require a release version;
Error message
SwiftPM artifact bundles require a release version; {display_version} selects a Git revision and must be built from source What it means
Artifact bundles are only published for tagged release versions. should_try_artifactbundle rejects requests that resolve to a Git revision (branch, commit SHA, ref) when artifact bundles are required or mandated, because there is no release asset to download.
Solutions
- Pin a release version/tag instead of a git revision
- Allow source builds: set spm.artifactbundle_only = false and don't require artifactbundle
- Set artifactbundle = false on that tool entry so it builds from source
Example fix
// before [tools.swiftlint] version = 'ref:main' // after [tools.swiftlint] version = '0.54.0'
Defensive patterns
Strategy: validation
Validate before calling
// pin only release tags when bundles are mandated case "$MISE_TOOL_VERSION" in ref:*|sha*|main|master|HEAD) echo "git revision incompatible with artifactbundle_only";; esac
Prevention
- Use tagged releases for SwiftPM tools under bundles-only policy
- If you need a git revision, explicitly set artifactbundle = false for that tool
When it happens
Trigger: install_version_ or git_revisions_skip_or_reject_artifact_bundles calls should_try_artifactbundle with a revision where revision.is_git_revision() is true and either opts.requires_artifactbundle(mode) or artifactbundle_only is true — e.g. pinning 'swiftlint@main' or a commit SHA while bundles-only is required.
Common situations: Pinning a tool to a git ref/branch/SHA in mise.toml while spm.artifactbundle_only is true; using ref:main style versions for a SwiftPM tool.
Understand the failure class
Background: UnsupportedOperationException and "is not supported" errors: when a library deliberately refuses a call — this error's family across 30 libraries.
Related errors
- artifact bundle executable does not exist
- artifactbundle_asset must end with .artifactbundle.zip, got
- artifactbundle = false conflicts with…
- brew bottles are only published for a formula's current…
- brew casks are installed at their current version
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/05ce370698316364.
Report an issue: GitHub.
Appendix: source
Thrown at src/backend/spm.rs:650
ToolRequest::Ref { ref_, ref_type, .. } if matches!(ref_type.as_str(), "ref" | "rev") => {
Some(PackageRevision::Git(ref_.clone()))
}
_ => None,
}
}
fn should_try_artifactbundle(
revision: &PackageRevision,
opts: &SpmOptions<'_>,
mode: ArtifactBundleMode,
artifactbundle_only: bool,
display_version: &str,
) -> eyre::Result<bool> {
if mode == ArtifactBundleMode::SourceOnly && artifactbundle_only {
bail!("artifactbundle = false conflicts with spm.artifactbundle_only");
}
if revision.is_git_revision() && (opts.requires_artifactbundle(mode) || artifactbundle_only) {
bail!(
"SwiftPM artifact bundles require a release version; {display_version} selects a Git revision and must be built from source"
);
}
Ok(!revision.is_git_revision() && mode != ArtifactBundleMode::SourceOnly)
}
fn with_install_env(mut command: Expression, tv: &ToolVersion) -> Expression {
for (key, value) in tv.install_env() {
command = match value.into_string() {
Some(value) => command.env(key, value),
None => command.env_remove(key),
};
}
command
}
/// Restricts `executables` to those listed in `filter_bins`, preserving the
/// original declaration order from `Package.swift` rather than the order inView on GitHub (pinned to 533346cc37)