Giter Club home page Giter Club logo

build-machinery-go's Introduction

library-go/build-machinery-go

These are the building blocks for this and many of our other repositories to share code for Makefiles, helper scripts and other build related machinery.

Makefiles

make/ directory contains several predefined makefiles (*.mk) to choose from and include one of them as a base in your final Makefile. These are the predefined flows providing you with e.g. build, test or verify targets. To start with it is recommended you base Makefile on the corresponding *.example.mk using copy&paste.

As some advanced targets are generated, every Makefile contains make help target listing all the available ones. All of the "example" makefiles have a corresponding .help file listing all the targets available there.

Also for advanced use and if none of the predefined flows doesn't fit your needs, you can compose the flow from modules in similar way to how the predefined flows do,

Golang

Standard makefile for building pure Golang projects.

Default

Standard makefile for OpenShift Golang projects.

Extends #Golang.

Operator

Standard makefile for OpenShift Golang projects.

Extends #Default.

Scripts

scripts contain more complicated logic that is used in some make targets.

Contributing

Updating generated files

We track the log output from the makefile tests to make sure any change is visible and can be audited. Unfortunately due to subtle linux tooling differences in distributions and versions, make update may not get you the exact output as the CI. To avoid it, just run the command in the same container as CI:

podman run -it --rm --pull=always -v $( pwd ):/go/src/$( go list -m ) --workdir=/go/src/$( go list -m ) registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.15-openshift-4.7 make update

build-machinery-go's People

Contributors

2uasimojo avatar benluddy avatar coreydaley avatar csrwng avatar damemi avatar deads2k avatar dgrisonnet avatar fedosin avatar ingvagabund avatar marun avatar mfojtik avatar mtrmac avatar openshift-ci[bot] avatar openshift-merge-robot avatar s-urbaniak avatar skitt avatar soltysh avatar staebler avatar stlaz avatar sttts avatar thrasher-redhat avatar tnozicka avatar wking avatar zhujian7 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.