technomancy/leiningen — Issue #332: init.clj settings: :omit-default-repositories doesn't work for `lein search`
Author: klauern
Created: 2011-11-17 05:05:04+00:00
State: open

I'm still trying to wrap my head around the `~/.lein/init.clj` file, but I have this in there and it doesn't appear to follow the `:omit-default-repositories` setting, but it *does* add the additional repository when running `lein search `:

```clj
(def settings {
:repositories { "nexus" "http://mavenrepo:8081/nexus/content/groups/public/"}
:omit-default-repositories true
})
```

But when I run `lein search "quartz"` for instance, I get this:

```cmd
PS C:\mydocs\Clojure> lein search "quartz"
Warning: couldn't download index for http://repo1.maven.org/maven2
Warning: couldn't download index for http://clojars.org/repo/
PS C:\mydocs\Clojure>
```

Now, I know that the two Warnings happen because it doesn't go through the proxy, which I think is addressed somewhere else, but I wouldn't expect it to warn me about anything, unless this option isn't supposed to/expected to be used in the `init.clj`?

Is there somewhere that I can look that might show me a better idea what I could/should put in the `init.clj`? Maybe this setting isn't applicable or something. I'm kind of treating it like a global `~/.m2/settings.xml` file, so I could be assuming too much.