Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unnecessary 'requires' in generated cache #11

Open
simon-brooke opened this issue Jun 17, 2022 · 0 comments
Open

Unnecessary 'requires' in generated cache #11

simon-brooke opened this issue Jun 17, 2022 · 0 comments

Comments

@simon-brooke
Copy link
Owner

When generating cache.clj files, we generate a require list. Most of these requires appear to be unnecessary. The following commenting makes no difference to build in YouYesYet:

(ns
 youyesyet.cache
 "Caching wrappers for queries for youyesyet auto-generated by [Application Description Language framework](https://github.com/simon-brooke/adl) at 20220617T112222.113Z"
 (:require
  ;; [adl-support.core :refer :all]
  ;; [adl-support.rest-support :refer :all]
  [clojure.core.memoize :as memo]
  ;; [clojure.java.io :as io]
  ;; [clojure.tools.logging :as log]
  ;; [compojure.core :refer [defroutes GET POST]]
  ;; [hugsql.core :as hugsql]
  ;; [noir.response :as nresponse]
  ;; [noir.util.route :as route]
  ;; [ring.util.http-response :as response]
  [youyesyet.db.core :as db]))

I think (but need to check) that none of these requires are ever actually used. In which case they should not be generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant