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

Cannot push-snapshot #220

Closed
agarman opened this issue Jun 9, 2015 · 1 comment
Closed

Cannot push-snapshot #220

agarman opened this issue Jun 9, 2015 · 1 comment

Comments

@agarman
Copy link

agarman commented Jun 9, 2015

With build.boot file (https://www.refheap.com/803a7212e81ff91db31a23436):

(set-env!
 :source-paths #{"src"}
 :dependencies '[[adzerk/bootlaces "0.1.11" :scope "test"]])

(require '[adzerk.bootlaces :refer :all])

(def +version+ "0.0.1-SNAPSHOT")
(bootlaces! +version+)

(task-options!
 pom {:project 'boot-lein
      :version +version+
      :description "Boot task for using project.clj for dependencies"
      :url "https://github.com/carelogistics/boot-lein"
      :license {"EPL" "http://www.eclipse.org/legal/epl-v10.html"}})

The following boot command fails.

9352➜  boot build-jar push-snapshot 
Writing pom.xml and pom.properties...
Writing boot-lein-0.0.1-SNAPSHOT.jar...
Installing boot-lein-0.0.1-SNAPSHOT.jar...
CLOJARS_USER and CLOJARS_PASS were not set; please enter your Clojars credentials.
Username: agarman
Password:
             clojure.lang.ExceptionInfo: java.lang.AssertionError: Assert failed: scm tag in pom doesn't match (HEAD, c4bcf3f2b5ebd185a668162f7406160bfc45cbd1)
                                         (or (not ensure-tag) (= t ensure-tag))

'boot pom' produces the following files in target:

pom.xml (https://www.refheap.com/99115963da8e422788dc4ad25)

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>boot-lein</groupId>
  <artifactId>boot-lein</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <name>boot-lein</name>
  <description>Boot task for using project.clj for dependencies</description>
  <url>https://github.com/carelogistics/boot-lein</url>
  <licenses>
    <license>
      <url>http://www.eclipse.org/legal/epl-v10.html</url>
      <name>EPL</name>
      <comments/>
    </license>
  </licenses>
  <scm>
    <url/>
    <tag>HEAD</tag>
  </scm>
  <dependencies>
    <dependency>
      <groupId>adzerk</groupId>
      <artifactId>bootlaces</artifactId>
      <version>0.1.11</version>
      <scope>test</scope>
      <exclusions/>
    </dependency>
  </dependencies>
</project>

pom.properties (https://www.refheap.com/678c4551b19716a9746c94feb)

#boot-lein/boot-lein 0.0.1-SNAPSHOT property file
#Tue Jun 09 11:13:56 EDT 2015
version=0.0.1-SNAPSHOT
groupId=boot-lein
artifactId=boot-lein
@martinklepsch
Copy link
Member

@agarman what's the output of git tag -l in your repo?

Generally this is probably more of a bootlaces specific issue. If you look at the options that are set as part of bootlaces! you can see that it enforces matching tags, branch being master and no uncommitted changes. (bootlaces.clj)

It might be worth trying to reset those settings and pushing a release:

(task-options! 
  push {:ensure-clean false
        :ensure-branch nil
        :ensure-tag nil})

@micha micha closed this as completed in d878241 Jun 11, 2015
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

2 participants