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

config.public.json: add trailing slash to doc #515

Closed
wants to merge 2 commits into from
Closed

config.public.json: add trailing slash to doc #515

wants to merge 2 commits into from

Conversation

zowoq
Copy link
Contributor

@zowoq zowoq commented Jun 15, 2020

Might help with #148?

I went through the last few pages of PRs with this label and it looks evenly split between PRs that have docs and not.

Copy link
Member

@cole-h cole-h left a comment

Choose a reason for hiding this comment

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

SGTM for now, but I believe this will still trigger on bumps for packages e.g. scdoc (pkgs/tools/typesetting/sc**doc/**default.nix). It'll definitely cut down on false-positives, but at some point we might want to rework the parsing of these paths -- wherever that occurs -- to incorporate FRidh's suggestion from the linked issue (namely: "It should do the matching from the start of the [path]").

@LnL7
Copy link
Member

LnL7 commented Jun 15, 2020

Perhaps we should also change this to absolute paths relative to the git checkout.

@zowoq
Copy link
Contributor Author

zowoq commented Jun 16, 2020

Changed to starts_with as suggested on #nixos-ofborg.

Seems matrix won't let me log in today so I can't comment there or nixos-dev.

@@ -255,7 +255,7 @@ impl PathsTagger {
.possible
.iter()
.filter(|&(ref tag, ref _paths)| !self.selected.contains(&tag))
.filter(|&(ref _tag, ref paths)| paths.iter().any(|tp| path.contains(tp)))
.filter(|&(ref _tag, ref paths)| paths.iter().any(|tp| path.starts_with(tp)))
Copy link
Member

Choose a reason for hiding this comment

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

I don't actually know if the path is only something like pkgs/applications/... or if it also includes the checkout (e.g. ~/workspace/vcs/nixpkgs in my case).

@LnL7 since you run the darwin builder, do you know/can you verify if this is or isn't the case? (I still haven't taken the time to setup my own builder to play around with stuff like this... I'll do that Soon™.)

If it does start with the checkout path, we'll want to strip that out/not care about it before starts_with will work as expected.

@zowoq zowoq closed this Jul 18, 2020
@zowoq zowoq deleted the doc-isnt-docs branch March 21, 2021 20:20
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

3 participants