{"action":"created","issue":{"url":"https://api.github.com/repos/jonase/eastwood/issues/273","repository_url":"https://api.github.com/repos/jonase/eastwood","labels_url":"https://api.github.com/repos/jonase/eastwood/issues/273/labels{/name}","comments_url":"https://api.github.com/repos/jonase/eastwood/issues/273/comments","events_url":"https://api.github.com/repos/jonase/eastwood/issues/273/events","html_url":"https://github.com/jonase/eastwood/issues/273","id":347710314,"node_id":"MDU6SXNzdWUzNDc3MTAzMTQ=","number":273,"title":"Built-in config isn't used?","user":{"login":"valerauko","id":6322484,"node_id":"MDQ6VXNlcjYzMjI0ODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/6322484?v=4","gravatar_id":"","url":"https://api.github.com/users/valerauko","html_url":"https://github.com/valerauko","followers_url":"https://api.github.com/users/valerauko/followers","following_url":"https://api.github.com/users/valerauko/following{/other_user}","gists_url":"https://api.github.com/users/valerauko/gists{/gist_id}","starred_url":"https://api.github.com/users/valerauko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valerauko/subscriptions","organizations_url":"https://api.github.com/users/valerauko/orgs","repos_url":"https://api.github.com/users/valerauko/repos","events_url":"https://api.github.com/users/valerauko/events{/privacy}","received_events_url":"https://api.github.com/users/valerauko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-05T16:06:16Z","updated_at":"2018-10-28T08:53:43Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I see warnings about mount's defstate (which internally uses defonce) defing vars 2 times, and Clojure spec's coll-of being \"always true or always false\". I believe these warnings are disabled in the built-in configs. What am I doing wrong?\r\n\r\n## Reproduce\r\nA fresh project with `lein new app hoge`\r\n### project.clj\r\n```clj\r\n(defproject hoge \"0.1.0-SNAPSHOT\"\r\n  :description \"FIXME: write description\"\r\n  :url \"http://example.com/FIXME\"\r\n  :license {:name \"Eclipse Public License\"\r\n            :url \"http://www.eclipse.org/legal/epl-v10.html\"}\r\n  :dependencies [[org.clojure/clojure \"1.9.0\"]\r\n                 [mount \"0.1.12\"]]\r\n  :main ^:skip-aot hoge.core\r\n  :target-path \"target/%s\"\r\n  :profiles {:uberjar {:aot :all}\r\n             :dev {:plugins [[jonase/eastwood \"0.2.9\"]\r\n                             [lein-ancient \"0.6.15\"]]}})\r\n```\r\n### core.clj\r\n```clj\r\n(ns hoge.core\r\n  (:require [clojure.spec.alpha :as s]\r\n            [mount.core :refer [defstate]])\r\n  (:gen-class))\r\n(s/def ::scope-array\r\n  (s/coll-of #{\"read\" \"write\" \"follow\"} :distinct true\r\n             :min-count 1 :max-count 3))\r\n(defstate my-state\r\n  :start (constantly \"foo\")\r\n  :stop (constantly \"bar\"))\r\n(defn -main\r\n  \"I don't do a whole lot ... yet.\"\r\n  [& args]\r\n  (println \"Hello, World!\"))\r\n```\r\n### Result\r\nWith this setup, running `lein eastwood` says,\r\n```\r\nsrc/hoge/core.clj:10:11: redefd-vars: Var my-state def'd 2 times at line:col locations: hoge/core.clj:10:11 hoge/core.clj:10:11\r\nsrc/hoge/core.clj:7:3: constant-test: Test expression is always logical true or always logical false: 1 in form (if or__5238__auto__ or__5238__auto__ (clojure.core/or 0))\r\nsrc/hoge/core.clj:7:3: constant-test: Test expression is always logical true or always logical false: 3 in form (if 3 (clojure.core/inc 3) 1)\r\nsrc/hoge/core.clj:7:3: constant-test: Test expression is always logical true or always logical false: 3 in form (if or__5238__auto__ or__5238__auto__ (clojure.core/or java.lang.Integer/MAX_VALUE))\r\n```"},"comment":{"url":"https://api.github.com/repos/jonase/eastwood/issues/comments/433687505","html_url":"https://github.com/jonase/eastwood/issues/273#issuecomment-433687505","issue_url":"https://api.github.com/repos/jonase/eastwood/issues/273","id":433687505,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzY4NzUwNQ==","user":{"login":"valerauko","id":6322484,"node_id":"MDQ6VXNlcjYzMjI0ODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/6322484?v=4","gravatar_id":"","url":"https://api.github.com/users/valerauko","html_url":"https://github.com/valerauko","followers_url":"https://api.github.com/users/valerauko/followers","following_url":"https://api.github.com/users/valerauko/following{/other_user}","gists_url":"https://api.github.com/users/valerauko/gists{/gist_id}","starred_url":"https://api.github.com/users/valerauko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valerauko/subscriptions","organizations_url":"https://api.github.com/users/valerauko/orgs","repos_url":"https://api.github.com/users/valerauko/repos","events_url":"https://api.github.com/users/valerauko/events{/privacy}","received_events_url":"https://api.github.com/users/valerauko/received_events","type":"User","site_admin":false},"created_at":"2018-10-28T08:53:43Z","updated_at":"2018-10-28T08:53:43Z","author_association":"CONTRIBUTOR","body":"Hmm, #300 doesn't seem to fix the `coll-of` warning in the example I pasted in the issue.\r\n\r\nIt does, however, work if I increase the depth to 8.\r\n\r\ncc @gws "}}
{"actor":{"display_login":"valerauko"}}