unison icon indicating copy to clipboard operation
unison copied to clipboard

Deleting a namespace sometimes fails citing dependents within the namespace

Open alvaroc1 opened this issue 2 years ago • 4 comments

Using development version. My expectation is that it should delete successfully since the dependents are also being deleted.

@alvaroc1/webauth/main> version

  39b76f3
  
@alvaroc1/webauth/main> delete.namespace lib.playgroundHttp

  ⚠️
  
  I didn't delete the namespace because the following definitions are still in use.
  
  Dependency                                     Referenced In
  playgroundHttp.lib.http.HttpResponse.setBody   1. lib.playgroundHttp.Route.streaming
                                                 
  fromOffsetDateTime                             2. lib.playgroundHttp.Cookie.toText
                                                 
  jsonCore.Json.toText                           3. lib.playgroundHttp.Route.respond.ok.json
                                                 4. lib.oauth2.lib.playgroundHttp.Route.response.appendJson
                                                 5. lib.playgroundHttp.Route.respond.status.json
                                                 6. lib.oauth2.lib.playgroundHttp.Route.respond.ok.json
                                                 7. lib.playgroundHttp.Route.response.appendJson
                                                 8. lib.oauth2.lib.playgroundHttp.Route.respond.status.json
  
  If you want to proceed anyways and leave those definitions without names, use
  delete.namespace.force

Also encountered here: https://unisonlanguage.slack.com/archives/CLUNF0J5S/p1686249322080639

alvaroc1 avatar Jun 23 '23 21:06 alvaroc1