title: Swift - Can't import packages
body: <p>I have been trying out Swift on Ubuntu 20.10 and am having trouble importing packages. Swift is installed properly. I am always getting  <code>error: no such module</code>, no matter which package I try.<br />
  Here is my Package.swift (Embassy as an example):</p>
  <pre class="lang-swift prettyprint-override"><code>// swift-tools-version:5.3
  // The swift-tools-version declares the minimum version of Swift required to build this package.
  
  import PackageDescription
  
  let package = Package(
          name: &quot;test&quot;,
          /* products: [
               .executable(name: &quot;test&quot;, targets: [&quot;test&quot;])
           ],*/
          dependencies: [
              // Dependencies declare other packages that this package depends on.
              // .package(url: /* package url */, from: &quot;1.0.0&quot;),
              .package(url: &quot;https://github.com/envoy/Embassy.git&quot;,
                      from: &quot;4.1.1&quot;),
          ],
          targets: [
              // Targets are the basic building blocks of a package. A target can define a module or a test suite.
              // Targets can depend on other targets in this package, and on products in packages this package depends on.
              .target(
                      name: &quot;test&quot;,
                      dependencies: []),
              .testTarget(
                      name: &quot;testTests&quot;,
                      dependencies: [&quot;test&quot;]),
          ]
  )
  
  
  </code></pre>
  <p>main.swift(under <code>Sources/test</code>)</p>
  <pre class="lang-swift prettyprint-override"><code>import Foundation
  import Embassy
  let loop = try! SelectorEventLoop(selector: try! KqueueSelector())
  let server = DefaultHTTPServer(eventLoop: loop, port: 8080) {
      (
              environ: [String: Any],
              startResponse: ((String, [(String, String)]) -&gt; Void),
              sendBody: ((Data) -&gt; Void)
      ) in
      // Start HTTP response
      startResponse(&quot;200 OK&quot;, [])
      let pathInfo = environ[&quot;PATH_INFO&quot;]! as! String
      sendBody(Data(&quot;the path you're visiting is \(pathInfo.debugDescription)&quot;.utf8))
      // send EOF
      sendBody(Data())
  }
  
  // Start HTTP server to listen on the port
  try! server.start()
  
  // Run event loop
  loop.runForever()
  </code></pre>