Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove obsolete dependency github.com/fatih/hclfmt #3834

Merged
merged 1 commit into from
Mar 17, 2021
Merged

Remove obsolete dependency github.com/fatih/hclfmt #3834

merged 1 commit into from
Mar 17, 2021

Conversation

Kielek
Copy link
Contributor

@Kielek Kielek commented Mar 3, 2021

github.com/fatih/hclfmt was archived. Technically there is a possibility to fork (or used another forked version) to executle hclfmt.

But it leads to another issues - problems with importing https://github.com/hashicorp/hcl/hcl/printers. HCL was released in version 2 so that the file structure was changes.
I do not see any way to install it in changed Makefile. Go installs does not support pining to given tags so that always the newest version is installed.

For now, the impact on build process should be minimal. it is used only in ./tools/lint/lint() method. I was able to execute it locally without executing hclfmt.

…ity to fork (or used another forked version) to executle hclfmt.

But it leads to another issues - problems with importing https://github.com/hashicorp/hcl/hcl/printers. HCL was released in version 2 so that the file structure was changes.
I do not see any way to install it in changed Makefile. Go installs does not support pining to given tags so that always the newest version is installed.

For now, the impact on build process should be minimal. it is used only in ./tools/lint/lint() method. I was able to execute it locally without executing hclfmt.
@Kielek
Copy link
Contributor Author

Kielek commented Mar 3, 2021

Should solve #3832

@Kielek
Copy link
Contributor Author

Kielek commented Mar 5, 2021

@bboreham, could you please check?

@bboreham
Copy link
Collaborator

bboreham commented Mar 5, 2021

Sorry, been doing other things.
Please feel free to ping me again in a few days if I still haven't looked.

@Kielek
Copy link
Contributor Author

Kielek commented Mar 11, 2021

@bboreham?

@bboreham bboreham changed the title github.com/fatih/hclfmt was archived. Technically there is a possibil… Remove obsolete dependency github.com/fatih/hclfmt Mar 17, 2021
Copy link
Collaborator

@bboreham bboreham left a comment

Choose a reason for hiding this comment

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

Thanks!

@bboreham bboreham merged commit e29f474 into weaveworks:master Mar 17, 2021
@Kielek Kielek deleted the fix-build branch March 17, 2021 11:01
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.

None yet

2 participants