question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Manage `files` & `globs` differently

See original GitHub issue

The values are stored & retrieved perfectly with single tasks and serial chains.

But with large parallel chain, the known values aren’t 100% consistent. This is because ALL tasks & plugins are looking at & modifying the same internal variables: fly._.files, fly._.globs.

Ideas

Attach files and globs values to each fly.tasks entry.

  • Will need a getter & setter for files() and globs(). These return & set the current task’s values.

  • Will need a way to know what task is currently being executed.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:20 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
Akkumacommented, Dec 14, 2016

So I read through some of the issue and one “farfetched” idea is to stop using this. It seems similar in nature to option 2. The idea would be for each task to be passed in the appropriate information and potentially return output to modify the input for the next plugin. Ultimately, this is just moving it to a functional style, so you just pass input and get output through the chain of plugins.

1reaction
lukeedcommented, Nov 16, 2016

@devmondo Thanks. I checked up on it and it looks like process.env goes way back, as I suspected / hoped.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python glob multiple filetypes - Stack Overflow
To glob multiple file types, you need to call glob() function several times in a loop ...
Read more >
Use the OS and Glob Python Packages to Manipulate File Paths
glob is a powerful tool in Python to help with file management and ... glob uses different operators to broaden its searching abilities....
Read more >
Understanding the glob pattern in Node.js - LogRocket Blog
The glob pattern adds all files within a directory with the .java extension, ... matching patterns across different programming languages.
Read more >
Python Glob: Filename Pattern Matching - PYnative
Python glob module to find files and folders whose names follow a specific pattern. Search files recursively with wildcard characters.
Read more >
File Name Glob Patterns - Fossil SCM
Git's globs and Fossil's globs treat directory separators differently. Git includes a notation for zero or more directories that is not needed in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found