CanineHQ/canine · error · Projects::BuildJob::BuildFailure

Pack build failed: #{e.message}

Error message

Pack build failed: #{e.message}

What it means

Error "Pack build failed: #{e.message}" thrown in CanineHQ/canine.

Source

Thrown at app/services/builders/frontends/buildpack_builder.rb:81

    # Add publish flag if supported by driver
    command << "--publish" if publish_during_build?

    # Add pull policy to always pull latest builder
    command += [ "--pull-policy", "always" ]

    # Trust builder (required for some builders)
    command << "--trust-builder"

    command += [ "--report-output-dir", report_dir ]

    command
  end

  def run_pack_command(command)
    runner = Cli::RunAndLog.new(build, killable: build)
    runner.call(Array(command))
  rescue Cli::CommandFailedError => e
    raise Projects::BuildJob::BuildFailure, "Pack build failed: #{e.message}"
  end

  def publish_during_build?
    true
  end

  def parse_digest_from_report(report_dir)
    report_file = File.join(report_dir, "report.toml")
    return nil unless File.exist?(report_file)

    content = File.read(report_file)

    # Prefer registry digest (present when --publish is used), fall back to local image-id
    digest_match = content.match(/digest\s*=\s*"([^"]+)"/)
    return digest_match.captures.first if digest_match

    id_match = content.match(/image-id\s*=\s*"([^"]+)"/)
    return nil unless id_match

View on GitHub (pinned to ba4ee3968d)

When it happens

Trigger: Thrown at app/services/builders/frontends/buildpack_builder.rb:81 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of CanineHQ/canine@ba4ee3968d (2026-08-23). Data as JSON: /api/errors/f3d389bd0792b2e0. Report an issue: GitHub.