Skip to content

ui/compress: Do not change git worktree - #10467

Merged
Nexucis merged 1 commit into
prometheus:mainfrom
roidelapluie:uibuild
Mar 20, 2022
Merged

Nexucis merged 1 commit into
prometheus:mainfrom
roidelapluie:uibuild

Conversation

@roidelapluie

Copy link
Copy Markdown
Member

This change makes sure that the git worktree is not changed while
compressing assets, making it better for local development.

To achieve this, the compression script keeps the un-compressed assets
and generates the go:embed directory when compressing the files.

A .gitignore file has been added to ignore generated files.

cc @jan--f

Signed-off-by: Julien Pivotto [email protected]

This change makes sure that the git worktree is not changed while
compressing assets, making it better for local development.

To achieve this, the compression script keeps the un-compressed assets
and generates the go:embed directory when compressing the files.

A .gitignore file has been added to ignore generated files.

Signed-off-by: Julien Pivotto <[email protected]>
@roidelapluie
roidelapluie requested a review from juliusv as a code owner March 18, 2022 11:14
@roidelapluie
roidelapluie requested a review from Nexucis March 18, 2022 23:49
@Nexucis

Nexucis commented Mar 20, 2022

Copy link
Copy Markdown
Member

ah yes good catch. Thanks !

@Nexucis
Nexucis merged commit c901eba into prometheus:main Mar 20, 2022
IzhakJakov pushed a commit to IzhakJakov/prometheus that referenced this pull request Mar 23, 2022
This change makes sure that the git worktree is not changed while
compressing assets, making it better for local development.

To achieve this, the compression script keeps the un-compressed assets
and generates the go:embed directory when compressing the files.

A .gitignore file has been added to ignore generated files.

Signed-off-by: Julien Pivotto <[email protected]>
IzhakJakov pushed a commit to IzhakJakov/prometheus that referenced this pull request Mar 23, 2022
This change makes sure that the git worktree is not changed while
compressing assets, making it better for local development.

To achieve this, the compression script keeps the un-compressed assets
and generates the go:embed directory when compressing the files.

A .gitignore file has been added to ignore generated files.

Signed-off-by: Julien Pivotto <[email protected]>
jan--f added a commit to jan--f/syncbot that referenced this pull request Apr 28, 2022
With prometheus/prometheus#10220 and
prometheus/prometheus#10467 prometheus no longer
needs a dedicated asset generation step. This change made in into
prometheus v2.35.0.

Signed-off-by: Jan Fajerski <[email protected]>
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.

2 participants