Skip to content

Conversation

@KozhinovAlexander
Copy link
Contributor

@KozhinovAlexander KozhinovAlexander commented Oct 20, 2024

Current /build* ignore pattern will exclude build only in the root of the project.
In some cases it is needed build folder to be located in app folder or anywhere else in the project.
This PR fixes this behaviour.

How to reporduce: Make west put build artefacts into /app/build folder or just move your folder there. You shall see git showing you about 500 untracked files.

UPDATE: This change allows efectivelly delete the whole build folder with git clean -xdf. Please still be carefull using this command anyway.

@KozhinovAlexander
Copy link
Contributor Author

@henrikbrixandersen Interestingly you will not be putted as assignee. Thus I ping you :) Please take a look.

@henrikbrixandersen
Copy link
Member

henrikbrixandersen commented Oct 20, 2024

@henrikbrixandersen Interestingly you will not be putted as assignee. Thus I ping you :) Please take a look.

There is really no need to ping me. I get notifications for all activity here.

# build
/build*
*build*
/twister-out*
Copy link
Member

Choose a reason for hiding this comment

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

The *build* glob is a little too wide IMO. Please remove the existing /build* glob add a **/build* glob at the end of the # build section instead.

Copy link
Contributor Author

@KozhinovAlexander KozhinovAlexander Oct 20, 2024

Choose a reason for hiding this comment

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

@henrikbrixandersen Hi, glad to see you working on weekend :) Thank you pointing on it. It is done in the commit: 2a39694

Current /build* ignore pattern will exclude build only in the root
of the project.
In some cases it is needed build folder to be located in app folder or
anywhere else in the project.
This PR fixes this behaviour.

Signed-off-by: Alexander Kozhinov <ak.alexander.kozhinov@gmail.com>
.gitignore Outdated

# build
/build*
**/build*
Copy link
Member

Choose a reason for hiding this comment

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

Thanks. Please move it to after the /twister-out* line as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You were faster than me. It is done now here: c19fab3

@henrikbrixandersen henrikbrixandersen merged commit 4f33384 into CANnectivity:main Oct 20, 2024
@henrikbrixandersen
Copy link
Member

@KozhinovAlexander Thank you for your contribution :)

@KozhinovAlexander KozhinovAlexander deleted the fix_build_git_exclude branch October 20, 2024 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants