Concrete
Rulesworkspace

concrete/workspace/duplicate-browser-file

Two of the build's browser files (a stylesheet, a script, an imported image or font) would have one filename. A host answers them by filename alone, and a published site keeps them in one folder.

Two of the build's browser files (a stylesheet, a script, an imported image or font) would have one filename. A host answers them by filename alone, and a published site keeps them in one folder.

Graded by the workspace stage of concrete check, in the tree venue. A violation reports this id and the file it failed at — see every rule and concrete check.

Reason

A build's browser files are its stylesheets, its scripts and every image or font a section or the template's CSS imports. Wherever a page is shown, in concrete dev, in the editor or on a published site, each of those files is asked for by its filename alone, under one address the build's files share. Two browser files with one filename would be one address for two different files, so a page could load the wrong one. concrete build refuses such a build rather than pick one, and the platform refuses the same when a template is sent.

Every name the build writes carries a content hash: a stylesheet or a script the build makes is named for its bytes, and an image or a font you import keeps its file's stem plus a hash of its bytes. So a build of your workspace does not meet this rule. Meeting it means the build folder was changed or assembled by something other than concrete build.

Fix

Leave the build folder to concrete build. Delete it and build again, and send what that build wrote. If a tool of your own adds files to the build folder, have it put them beside your source files instead, where the build imports and names them.

Before and after

.concrete/build/
  static/base-2681d488.css      written by the build
  assets/base-2681d488.css      copied in by hand, under the same name
.concrete/build/
  static/base-2681d488.css      written by the build

On this page