Which is more convenient to build a go project with Bazel or Makefile?

which is more convenient to use Bazel or Makefile to build go projects?

Oct.30,2021

if there is no historical baggage, I personally recommend Bazel. The collocation of google series is also easy


small item makefile is simpler


Makefile is enough

.PHONY: build clean lint help

all: build deploy

build:
    GOOS=linux GOARCH=amd64 go build -o ./bin/quntui-image-processor  .
    upx ./bin/quntui-image-processor
deploy:
    git commit -am "release"
    git push

lint:
    golint ./...

clean:
    rm -rf ./bin/quntui-image-processor
    go clean -i .

help:
    @echo "make: "
    @echo "make lint: "
    @echo "make clean: "
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b408c5-2c508.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b408c5-2c508.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?