No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

39 líneas
1.7KB

  1. Error: Source Distribution Already Exists
  2. #########################################
  3. This error is presented when an attempt is made to export/create a source
  4. distribution of a package in a way that would overwrite an existing source
  5. distribution.
  6. **If exporting to a repository**, this means that a source distribution with
  7. the same name and version is already present in the repository. The
  8. ``--replace`` option can be used to make ``dds`` forcibly overwrite the source
  9. distribution in the repository. This will be a common workflow when developing
  10. a package and one desires to see those changes reflected in another project
  11. that is try to use it.
  12. **If creating a source distribution manually**, this means that the destination
  13. path of the source distribution directory is already an existing directory
  14. (which may not be a source distribution itself). If ``dds`` were to try and
  15. write a source distribution to the named path, it would be required to delete
  16. whatever exists there before creating the source distribution.
  17. .. warning::
  18. When using ``dds pkg create`` with the ``--out <path>`` parameter, the
  19. ``<path>`` given **is not the directory in which to place the source
  20. distribution, but the filepath to the source distribution itself**!
  21. If I have a directory named ``foo/``, and I want to create a source
  22. distribution in that directory, **the following command is incorrect**::
  23. # Do not do this:
  24. dds pkg create --out foo/
  25. If you pass ``--replace`` to the above command, ``dds`` will **destroy the
  26. existing directory** and replace it with the source distribution!
  27. You **must** provide the full path to the source distribution::
  28. # Do this:
  29. dds pkg create --out foo/my-project.tar.gz