{"record":{"id":"6ffc104a9c69efd3","repo":"jordansissel/fpm","slug":"epoch-in-version-is-set","errorCode":null,"errorMessage":"epoch in Version is set","messagePattern":"epoch in Version is set","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/fpm/package/deb.rb","lineNumber":1085,"sourceCode":"\n      args = [ tar_cmd, \"-C\", control_path ] + compression_flags + [ \"-cf\", controltar,\n        \"--owner=0\", \"--group=0\", \"--numeric-owner\", \".\" ]\n      if tar_cmd_supports_sort_names_and_set_mtime? and not attributes[:source_date_epoch].nil?\n        # Force deterministic file order and timestamp\n        args += [\"--sort=name\", (\"--mtime=@%s\" % attributes[:source_date_epoch])]\n      end\n      args.unshift(compressor_options)\n      safesystem(*args)\n    end\n\n    logger.debug(\"Removing no longer needed control dir\", :path => control_path)\n  ensure\n    FileUtils.rm_r(control_path)\n  end # def write_control_tarball\n\n  def write_control\n    # warn user if epoch is set\n    logger.warn(\"epoch in Version is set\", :epoch => self.epoch) if self.epoch\n\n    # calculate installed-size if necessary:\n    if attributes[:deb_installed_size].nil?\n      logger.info(\"No deb_installed_size set, calculating now.\")\n      total = 0\n      Find.find(staging_path) do |path|\n        stat = File.lstat(path)\n        next if stat.directory?\n        total += stat.size\n      end\n      # Per http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Installed-Size\n      #   \"The disk space is given as the integer value of the estimated\n      #    installed size in bytes, divided by 1024 and rounded up.\"\n      attributes[:deb_installed_size] = total / 1024\n    end\n\n    # Write the control file\n    control_path(\"control\").tap do |control|","sourceCodeStart":1067,"sourceCodeEnd":1103,"githubUrl":"https://github.com/jordansissel/fpm/blob/b6d77ba72a560b687723376a0e5115c3a92634ad/lib/fpm/package/deb.rb#L1067-L1103","documentation":"Error \"epoch in Version is set\" thrown in jordansissel/fpm.","triggerScenarios":"Thrown at lib/fpm/package/deb.rb:1085 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b6d77ba72a560b687723376a0e5115c3a92634ad","analyzedAt":"2026-08-21T16:39:02.570Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}