reqcheck

package module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: BSD-2-Clause Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

reqcheck

Determine when a WebKit requirement has a new release

example workflow

Build

Build the binary with the following command:

set GOOS=windows
set GOARCH=amd64
set CGO_ENABLED=0

go build -v -a -tags netgo -o release\windows\amd64\reqcheck.exe ./cmd/reqcheck

Docker

Build the Docker image with the following command:

docker build --file docker\Dockerfile.windows.1809 --tag webkitdev/reqcheck .

Run the Docker image with the following command:

docker run --rm `
    -v <path-to-requirements>:C:/WebKitRequirements `
    -w C:/WebKitRequirements `
    webkitdev/reqcheck vcpkg .

Documentation

Index

Constants

View Source
const (
	DriverGitHub = "github"
	DriverGitLab = "gitlab"
)

Variables

View Source
var ErrScmDriver = errors.New("scm driver error")

Functions

func FilterSemanticConstraint

func FilterSemanticConstraint(c *semver.Constraints) func(interface{}) bool

func FilterSemanticVersion

func FilterSemanticVersion(item interface{}) bool

func FilterStableRelease

func FilterStableRelease(item interface{}) bool

func ListReleases

func ListReleases(client Client, opts ListReleaseOptions) rxgo.Observable

func ReduceGreatestVersion added in v0.3.0

func ReduceGreatestVersion(_ context.Context, acc interface{}, elem interface{}) (interface{}, error)

Types

type Client

type Client interface {
	ListReleases(ctx context.Context, owner, name string, opt ListOptions) ([]Release, error)

	ListTags(ctx context.Context, owner, name string, opt ListOptions) ([]Release, error)
}

func NewClientFromDriver

func NewClientFromDriver(driver, uri, token string) (Client, error)

func NewGitHub

func NewGitHub(uri, token string) (Client, error)

func NewGitHubClient

func NewGitHubClient(uri, token string, cl *http.Client) (Client, error)

func NewGitLab

func NewGitLab(uri, token string) (Client, error)

func NewGitLabClient

func NewGitLabClient(uri, token string, cl *http.Client) (Client, error)

type ListOptions

type ListOptions struct {
	// For paginated result sets, page of results to retrieve.
	Page int
	// For paginated result sets, the number of results to include per page.
	PerPage int
}

type ListReleaseOptions

type ListReleaseOptions struct {
	Owner   string
	Repo    string
	Tags    bool
	LimitTo int
}

type Release

type Release struct {
	Tag    string
	SemVer *semver.Version
}

Directories

Path Synopsis
cmd
reqcheck command

Jump to

Keyboard shortcuts

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