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

vale update, style packages #27201

Merged
merged 4 commits into from
Dec 22, 2020
Merged

vale update, style packages #27201

merged 4 commits into from
Dec 22, 2020

Conversation

paper42
Copy link
Member

@paper42 paper42 commented Dec 16, 2020

ping @SolitudeSF

it does not build without this line, but I didn't find a better way to do it

go_import_path="."

@SolitudeSF
Copy link
Contributor

i think go_import_path="github.com/errata-ai/vale/v2" shoud work but im not sure if that even matters

@paper42
Copy link
Member Author

paper42 commented Dec 16, 2020

go_import_path="github.com/errata-ai/vale/v2"

@SolitudeSF you were right, thanks

@ericonr
Copy link
Member

ericonr commented Dec 17, 2020

Am I correct in assuming that vale by itself isn't very useful without at least one style package?

@paper42
Copy link
Member Author

paper42 commented Dec 17, 2020

@ericonr I think so, but even if you install vale and one vale-style package, nothing will happen until you create a configuration file pointing it to /usr/share/vale. I would prefer it to get detected automatically, but vale doesn't load a system wide config file.

example config if you want to try it: ~/.vale.ini

StylesPath = /usr/share/vale/

[*.md]
BasedOnStyles = write-good

@ericonr
Copy link
Member

ericonr commented Dec 18, 2020

I would prefer it to get detected automatically, but vale doesn't load a system wide config file.

Might be nice to make a request for it :) at least so the user doesn't have to specify StylesPath themselves.

@ericonr
Copy link
Member

ericonr commented Dec 18, 2020

Also, vale output shows

VERSION:  
   master 

maybe there is a build time flag to set this appropriately?

@ericonr
Copy link
Member

ericonr commented Dec 18, 2020

https://github.com/errata-ai/vale/blob/430f6c8b4e6c00e2e50c0c0f4a3475f314db17ee/Makefile#L4 this is probably what you want. There are other templates doing similar things as well.

@paper42
Copy link
Member Author

paper42 commented Dec 20, 2020

@ericonr thanks, fixed the version

I would prefer it to get detected automatically, but vale doesn't load a system wide config file.

Might be nice to make a request for it :) at least so the user doesn't have to specify StylesPath themselves.

hmm, I do not think this is the correct solution anymore. If the user doesn't specify a config, no style should be used. I don't think all styles available in the system should be used. I will suggest to them a default StylesPath, but the user will still have to specify BasedOnStyles.

@ericonr
Copy link
Member

ericonr commented Dec 22, 2020

I will suggest to them a default StylesPath

Indeed, at least this.

@ericonr ericonr merged commit 9375709 into void-linux:master Dec 22, 2020
@q66
Copy link
Contributor

q66 commented Dec 22, 2020

why don't the style packages depend on vale? now you can build the styles for targets which don't have vale at all (because they don't have go)

@ericonr
Copy link
Member

ericonr commented Dec 22, 2020

I didn't consider in this case that vale itself wouldn't be available on all platforms. I guess I was thinking of packages like hunspell and aspell dicts, which don't depend on their respective tools. It probably makes more sense for them since they can be used by other packages, which isn't the case for the style packages. I think we can add a dependency, perhaps...

@paper42 what do you think?

@paper42
Copy link
Member Author

paper42 commented Dec 22, 2020

The styles are "vale compatible" which means there can be other tools using them, but I don't know about any.

@q66
Copy link
Contributor

q66 commented Dec 22, 2020

well, if the styles don't necessarily require the original thing, it's probably okay to just leave it

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 24, 2021
@paper42 paper42 deleted the vale-update branch April 8, 2022 11:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants