Questions about modules

Hello! I don’t understand why noProxy has string default value when it is:

Comma separated glob list matching paths that should not use the proxy configured above.

What is meant by list here? One string pattern1,pattern2 or ["pattern1", "pattern2"]? Maybe it’s better to stick to array term which is used in JSON Schema not to confuse people. :thinking:

It is what it says: “Comma separated glob list matching paths …”. If it was an array, it would say so.

The reason it’s not an array is that it’s very common to set this in the environment, which Is eaasier with a string:

HUGO_MODULES_NOPROXY="pattern1,pattern"
2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.