Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
* Sorting now works again
* Output is partially coloured (better highlighting out of date pipelines)
* Improved documentation
* Fixed bugs in `nf-core lint`
* The order of conda channels is now correct, avoiding occasional erroneous errors that packages weren't found ([#207](https://github.com/nf-core/tools/issues/207))

## [v1.5](https://github.com/nf-core/tools/releases/tag/1.5) - 2019-03-13 Iron Shark

Expand Down
4 changes: 3 additions & 1 deletion nf_core/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ def check_anaconda_package(self, dep):
if '::' in depname:
dep_channels = [depname.split('::')[0]]
depname = depname.split('::')[1]
for ch in reversed(dep_channels):
for ch in dep_channels:
anaconda_api_url = 'https://api.anaconda.org/package/{}/{}'.format(ch, depname)
try:
response = requests.get(anaconda_api_url, timeout=10)
Expand All @@ -701,6 +701,8 @@ def check_anaconda_package(self, dep):
elif response.status_code != 404:
self.warned.append((8, "Anaconda API returned unexpected response code '{}' for: {}\n{}".format(response.status_code, anaconda_api_url, response)))
raise ValueError
elif response.status_code == 404:
logging.debug("Could not find {} in conda channel {}".format(dep, ch))
else:
# We have looped through each channel and had a 404 response code on everything
self.failed.append((8, "Could not find Conda dependency using the Anaconda API: {}".format(dep)))
Expand Down