Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

build: validate deps before 'make build', and some cleanup #1271

Merged
merged 4 commits into from May 9, 2019

Conversation

mboersma
Copy link
Member

@mboersma mboersma commented May 9, 2019

Reason for Change:
Cleans up the Makefile in some minor ways:

  • makes validate-dependencies a prerequisite target for make build
  • adds separate validate-go and validate-shell targets for convenience and consistency
  • add validate-copyright-headers to make test-style
  • removes the validate-commit-msg.sh script that we punted on

The first bullet point in particular I think is important. I was bitten by this recently: my branch passed make clean build test-style test locally but failed in CI because dep check hadn't been run.

It's also worth noting that the validate-dependencies and validate-copyright-headers targets that this adds to the common developer workflow take negligible time.

Issue Fixed:

Requirements:

Notes:
Apologies for mixing concerns in one PR. I didn't think these changes were particularly controversial but I'm happy to separate them if that's preferable.

@codecov
Copy link

codecov bot commented May 9, 2019

Codecov Report

Merging #1271 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1271   +/-   ##
=======================================
  Coverage   74.84%   74.84%           
=======================================
  Files         128      128           
  Lines       18338    18338           
=======================================
  Hits        13725    13725           
  Misses       3829     3829           
  Partials      784      784

Copy link
Contributor

@CecileRobertMichon CecileRobertMichon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@CecileRobertMichon CecileRobertMichon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@acs-bot acs-bot added the lgtm label May 9, 2019
@acs-bot acs-bot merged commit 045dd97 into Azure:master May 9, 2019
@acs-bot
Copy link

acs-bot commented May 9, 2019

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: CecileRobertMichon, mboersma

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [CecileRobertMichon,mboersma]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mboersma mboersma deleted the we-can-makefile-it-better branch May 9, 2019 22:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants