Documentation

Overview

    Package changeset provides Knative utilities for fetching GitHub Commit ID from kodata directory. It requires GitHub HEAD file to be linked into Knative component source code via the following command:

    ln -s -r .git/HEAD ./cmd/<knative-component-name>/kodata/
    

    Then ko will build this file into $KO_DATA_PATH when building the container for a Knative component.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func Get

    func Get() (string, error)

      Get tries to fetch the first 7 digitals of GitHub commit ID from HEAD file in KO_DATA_PATH. If it fails, it returns the error it gets.

      Types

      This section is empty.

      Source Files