-
Notifications
You must be signed in to change notification settings - Fork 16
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
Store and print dependency versions #503
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Very nice start! I think the output of the script should just be optimized to show only the relevant information. Could we have the current versions of each tool in some configuration file, so that the checking script can list only the files needing updates? |
We could do that, but it introduces a dependency: the names of the tools in the config file would have to match the names of the tools in the page front matter. If we list Maybe a better way is to print a summary of the results that lists every version of every tool used without individual file names. Then you could see that some files used an old version of a tool and you could search for those files. |
As an example I added how we might check dependencies against a list of current versions, but this has some flaws as in my prior comment. The new script prints a summary of files that need to be updated like this:
|
If you print all the files depending on: old tools AND tools not in the config file, then we'll be forced to maintain the config file to cover all the mentioned dependencies. For instance, we'll put both octez v21 and octez-client v21 if we see that some pages are wrongly listed as outdated because the config is not complete. Alternatively, your tool could report an error when a dependency is not in the config at all. Would this solve your concern? |
The output is not bad, but we risk having duplicate files. It would be more scalable to list for each outdated file the list of obsolete dependencies, if any. If all dependencies are current, you don't list the file at all. If it uses any tool unknown in the config, error. Would this work for you? |
@NicNomadic Here's a version that organizes the output by file name and prints only the files that have missing or outdated dependencies. For example:
Not sure whether it's better to organize results by dependency or by file name. When a new version of Octez comes out we'll want to know the files that need updating, but if we keep things up to date the results won't have a lot of tools to worry about. |
The output is nice, maybe just a bit verbose. I'd truncate it like so:
Don't worry about finding all the files depending on a specific tool, we'll filter the output for that. Unless you may add a parameter to the command |
We've been talking about how to ensure that tutorials and tasks keep working as programs get updated. This is a sketch of how it might work:
Topics (particularly tutorials, but really any topic) can have a
dependency
front matter field with information about the programs it uses and the version on which it was most recently tested, as in this example:The program collates these dependencies and prints the file names that may need to be tested and updated when those programs get updated as in this example:
Note that I have put version numbers into these MD files for testing purposes and we should do a full review of version numbers before implementing this.