Skip to content

Conversation

@RabbITCybErSeC
Copy link
Contributor

No description provided.

@RabbITCybErSeC RabbITCybErSeC linked an issue Dec 11, 2024 that may be closed by this pull request
Copy link
Contributor

@MaartendeKruijf MaartendeKruijf left a comment

Choose a reason for hiding this comment

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

Add a build action to the CI look good

Makefile Outdated
Comment on lines 1 to 22
.PHONY: test lint build dev
.DEFAULT_GOAL := dev

EXAMPLE_DIRS := $(shell find examples -name "go.mod" -exec dirname {} \;)

define generate_build_target
.PHONY: build-$(1)
build-$(1):
cd $(1) && go build ./...
endef


#for each a seperate build target
$(foreach dir,$(EXAMPLE_DIRS),$(eval $(call generate_build_target,$(dir))))

# that is called here
build: $(patsubst %,build-%,$(EXAMPLE_DIRS))

Copy link
Contributor

Choose a reason for hiding this comment

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

Just make it explicit this is unreadable



build:
name: Build project
Copy link
Contributor

Choose a reason for hiding this comment

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

Build example

Makefile Outdated
EXAMPLE_DIRS := $(shell find examples -name "go.mod" -exec dirname {} \;)

define generate_build_target
.PHONY: build-$(1)
Copy link
Contributor

Choose a reason for hiding this comment

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

You are overwriting your .PHONY here

@RabbITCybErSeC RabbITCybErSeC force-pushed the feature/10-add-m2m-token-obtain-example branch from 3e66c50 to a75657c Compare December 12, 2024 12:57
@MaartendeKruijf MaartendeKruijf force-pushed the feature/10-add-m2m-token-obtain-example branch from cb1221f to 954daed Compare December 19, 2024 15:22
@MaartendeKruijf MaartendeKruijf merged commit d8c5467 into development Dec 19, 2024
5 checks passed
@MaartendeKruijf MaartendeKruijf deleted the feature/10-add-m2m-token-obtain-example branch December 19, 2024 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add m2m token obtain example

3 participants