Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(Makefile): fix dcspec gen dependencies and hide error output#17043

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mafredri merged 3 commits intomainfrommafredri/fix-makefile-dcspec-error-output
Mar 24, 2025

Conversation

mafredri
Copy link
Member

@mafredrimafredri commentedMar 21, 2025
edited
Loading

I thoughtmake gen was failing due to the red output, decided to just hide it. Fixed a few makefile deps while I was at it.

image

Copy link
Member

@johnstcnjohnstcn left a comment

Choose a reason for hiding this comment

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

🙏

@mafredrimafredriforce-pushed themafredri/fix-makefile-dcspec-error-output branch fromfe5caea tod915c56CompareMarch 21, 2025 16:07
@mafredrimafredriforce-pushed themafredri/fix-makefile-dcspec-error-output branch 2 times, most recently from916188f to6c02c64CompareMarch 24, 2025 10:27
@mafredrimafredriforce-pushed themafredri/fix-makefile-dcspec-error-output branch from6c02c64 tocc0f78bCompareMarch 24, 2025 10:35
# the target "agent/agentcontainers/dcspec/dcspec_gen.go" depends on
# node/pnpm tooling.
mkdir -p node_modules
touch node_modules/.installed
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

/cc@deansheather lmk if you're unhappy about this change. Happy to solve this another way if you have a suggestion. I'm vary of allowinggen/mark-fresh to touch non-existent files (node_modules/.installed).

Copy link
Member

Choose a reason for hiding this comment

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

Could you add a newGO_SRC_FILES-adjacent variable that excludes this directory perhaps?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I can do that 👍🏻. It seems thevpn package is limited to importingcodersdk andtailnet (+ sub paths), would it be alright to limit it to these or should we have a more exhaustive selection of src files?

(It'd be nice to eventually partially generate the Makefile and/or use Go src parsing to include relevant src files for targets.)

Copy link
Member

Choose a reason for hiding this comment

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

I think it would be fine to just exclude the problematic files for now. Even though it only imports those packages, those packages import a lot more.

Copy link
MemberAuthor

@mafredrimafredriMar 24, 2025
edited
Loading

Choose a reason for hiding this comment

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

Makes sense, wdytef77ec5 (#17043)?

@mafredrimafredriforce-pushed themafredri/fix-makefile-dcspec-error-output branch fromef77ec5 toea46eb6CompareMarch 24, 2025 11:30
@@ -54,6 +54,16 @@ FIND_EXCLUSIONS= \
-not \( \( -path '*/.git/*' -o -path './build/*' -o -path './vendor/*' -o -path './.coderv2/*' -o -path '*/node_modules/*' -o -path '*/out/*' -o -path './coderd/apidoc/*' -o -path '*/.next/*' -o -path '*/.terraform/*' \) -prune \)
# Source files used for make targets, evaluated on use.
GO_SRC_FILES := $(shell find . $(FIND_EXCLUSIONS) -type f -name '*.go' -not -name '*_test.go')
# Same as GO_SRC_FILES but excluding certain files that have problematic
# Makefile dependencies (e.g. pnpm).
MOST_GO_SRC_FILES := $(shell \
Copy link
Member

Choose a reason for hiding this comment

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

To avoid the search again, could you do an inverse grep on GO_SRC_FILES instead perhaps? No stress if you have problems, this will be fine

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

AFAIK the:= assignment should be evaluated only if used, so only formake build/coder-dylib? If we do an inverse grep then we always have to evaluateGO_SRC_FILES too?

Copy link
Member

Choose a reason for hiding this comment

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

That's fair, all g then

mafredri reacted with hooray emoji
@mafredrimafredriforce-pushed themafredri/fix-makefile-dcspec-error-output branch fromea46eb6 tofeffa14CompareMarch 24, 2025 11:31
@mafredrimafredrienabled auto-merge (squash)March 24, 2025 11:35
@mafredrimafredri merged commit6bf22f8 intomainMar 24, 2025
29 of 32 checks passed
@mafredrimafredri deleted the mafredri/fix-makefile-dcspec-error-output branchMarch 24, 2025 11:41
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMar 24, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@deansheatherdeansheatherdeansheather approved these changes

@johnstcnjohnstcnjohnstcn approved these changes

Assignees

@mafredrimafredri

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@mafredri@johnstcn@deansheather

[8]ページ先頭

©2009-2025 Movatter.jp